Fontconfig/Cairo on Leopard 10.5.2/PPC

BlitzMax Forums/Brucey's Modules/Fontconfig/Cairo on Leopard 10.5.2/PPC

Winni(Posted 2008) [#1]
I'm trying to run the FontConfig and Cairo samples on my G4 PowerBook on Leopard 10.5.2.

Everything compiles just fine, but...:

1. All FontConfig samples hang when started and produce no output at all.

2. The Cairo PDF output sample exits with "Fontconfig error: Cannot load default config file"

I haven't tried it yet on my Intel Mac with the same OS version. Maybe tomorrow.

Somebody got any ideas what this could be?


Winni(Posted 2008) [#2]
Ok, I almost have the same behavior on my Intel Mac. The only difference being that the fontconfig samples actually crash with an "want to send a report to Apple?" dialog.

The Cairo PDF output sample behaves the same as on PPC.


Brucey(Posted 2008) [#3]
The crash is because the FreeType library shipped with BlitzMax dates back to around the early Cretaceous period.

You can get yourself an updated module from here (about 1.4 meg).
(Only tested on Mac, your mileage may vary on other platforms)

As for the other issues, try copying fonts.conf from fontconfig/examples into your cairo.mod/examples folder.

First time run may take a little time as it caches font info. Then after, it should be normal start times.


Winni(Posted 2008) [#4]
Thanks, Brucey, that fixed it! :)

By the way, the working URL is this one:

http://www.brucey.net/programming/blitz/modules/fontconfig/freetype_updated.zip


Brucey(Posted 2008) [#5]
Thanks... that's what I get for blindly copy/pasting from the ftp client and not really paying attention at the same time :-p