Skip to content
Prev 4484 / 15075 Next

FreeType on osx

On Mar 15, 2008, at 1:30 PM, Duncan Murdoch wrote:

            
FreeType is a bit of a pain (I'll elaborate on that below). For CRAN  
binaries of packages that use FreeType we use a static build instead  
of the system one because those are too old. From a package's point of  
view it's easy, though, because you only have to ask pkgconfig or  
freetype-config. I wouldn't bother doing anything Mac-specific,  
because both Tiger and Leopard have freetype-config, but their  
versions are too old or buggy to bother.
It should - do you have X11 on your PATH?
Sort of - X11 in Leopard is broken out of the box, so you have to fix  
that first, but once you do, it works. Both Tiger and Leopard come  
with FreeType.

The real problem is that FreeType (even the last release) is somewhat  
broken on OS X. It doesn't support system fonts properly. The CVS  
version is a bit better, but still has a bug that causes font styles  
to be mixed up. In addition, it is incompatible with the one shipped  
in the OS. But anyhow, I don't think you should worry about all this  
as a package maintainer - I'll have to sort those things out anyway  
now that we use FreeType in R :).

Cheers,
Simon