[cairo] pangocairo and fonts on win32

jstuehmer at gmx.net jstuehmer at gmx.net
Wed Apr 22 23:22:35 PDT 2009

Hey all,

I'm using cairo and pango on win32/MinGW and would like to load a ttf-font from a file.

Until now, the only way I was able to use the font was to install it via fontconfig, by copying the ttf-file to "My Documents/.fonts" and calling "fc-cache". I found that installing the font into windows system fonts was not sufficient even if fc-cache was called afterwards.

Is there also a possibility to use a font in pango/cairo without installing it via fontconfig? I would like to supply an application without an installer and therefore would like to use a font from a ttf-file directly.

I'm using the Gtk+ 2.12.9 win32 build from
in a MSYS/MinGW environment.

Thank you,
 Jan Stühmer

Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a

More information about the cairo mailing list