[reportlab-users] Using non-standard fonts on Mac OS X

Dinu Gherman reportlab-users@reportlab.com
Wed, 26 May 2004 14:30:04 +0200


Tim Jarman:

> This happens both for the Apple pre-installed version 
> (/Library/Fonts/Arial)
> and for the one installed by MS Office (/Applications/Microsoft Office
> X/Office/Fonts/Arial).
>
> Is this a known issue? More to the point, anyone know a solution? If 
> all else
> fails I guess I can use Helvetica but it would be nice to crack this 
> one.

Hi Tim,

I get the same error, but there is no such TTF file on my system:

[localhost:~] dinu% ll /Library/Fonts/
total 24152
-rw-rw-r--   1 root  admin        0 Feb 27 08:02 Arial Black
-rw-rw-r--   1 root  admin        0 Feb 27 08:02 Arial Narrow
-rw-rw-r--   1 root  admin        0 Feb 27 08:02 Arial Rounded Bold

For true TTF you must have a .ttf file. On OS X Apple uses some
font magic thingy which mixes/hides fonts under a .dfont format
which cannot be used right away from ReportLab. You can convert
such files using fondu.sourceforge.net...

But... I really can't find any real file for Arial on my system,
although I can set Arial in text editors... Wait, I can see some
files named ArialHB.ttf and ArialHBBold.ttf, which I tried to use
with RL earlier, but with no luck telling from the folder named
"erroneous" containing them... And I really don't remember where
I got or converted them from...

Please let me know if you solve this...

Dinu

--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"It's not that I'm so smart, it's just that I stay with problems
longer." (Albert Einstein)