gummybears wrote:I suspect you should be able to use the Euro symbol with a TTF font, but
> Is it possible to output the euro symbol with prawn ?
> In RFPDF I can do something like
> formatted_amount = sprintf("%s %6.2f",128.chr ,amount)
> but not with prawn.
not the builtin ones. Prawn's support for non-ASCII text with built-in
font's is a little 'wonky'.
You will need to specify the symbol in utf-8, not by using 128.chr:
formatted_amount = sprintf("€ %6.2f", amount)
or if that has issues, specify the raw utf-8 bytes for the euro:
formatted_amount = sprintf("\xE2\x82\xAC %6.2f", amount)
-- James Healy <jimmy-at-deefa-dot-com> Fri, 26 Sep 2008 16:50:22 +1000
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.