reportlab and custom fonts

  • Thread starter Reinhold Birkenfeld
  • Start date
R

Reinhold Birkenfeld

Hi,

I'm trying to get reportlab working together with the Tahoma font
(by Microsoft ;)

So far it's up and running (converted the ttf with ttf2pt1), but the
Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to
show up in the final PDF.

I investigated a bit and saw that in the afm (and pfb) the code point
128 is called "uni20AC". That's okay in principle, since that Unicode
character is the Euro sign, but it seems that reportlab likes the
character to be named "Euro". Okay, renamed it in both files, still no
luck.

Has anyone experience with this problem?

Reinhold
 
R

Reinhold Birkenfeld

Reinhold said:
Hi,

I'm trying to get reportlab working together with the Tahoma font
(by Microsoft ;)

So far it's up and running (converted the ttf with ttf2pt1), but the
Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to
show up in the final PDF.

I investigated a bit and saw that in the afm (and pfb) the code point
128 is called "uni20AC". That's okay in principle, since that Unicode
character is the Euro sign, but it seems that reportlab likes the
character to be named "Euro". Okay, renamed it in both files, still no
luck.

Has anyone experience with this problem?

Never mind, I overlooked one occurence of "uni20AC" in my .t1a file.

Reinhold
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top