Re: [gtk-osx-users] GTK+ macOS: fontconfig

On Mar 16, 2018, at 1:35 PM, Jeffrey Sheen <jeffrey sheen00 alumni imperial ac uk> wrote:

Dear list,

I have a project that I am porting to macOS that uses the GTK+ stack, specifically pango+cairo+fontconfig.

The code relies on being able to create `FcConfig' (fontconfig) objects and call 
`pango_fc_font_map_set_config' to bind them to pango.

After following the build steps on the wiki, I found that the built product did not include the fontconfig 
libraries or headers, or the interop header files for pango.

I was expecting to find `fontconfig/fontconfig.h' and `pango/pangofc-fontmap.h'.

Is there a build setting that I must alter/add to target fontconfig?


N.B. I had previously asked this question to gtk-osx-devel-list, but was redirected to gtk-osx-users-list.

For code like that there's meta-gtk-osx-freetype. Add that to your module list or make it a dependency of 
your app's module.

However, if you have commit on the project it would be more portable to *not* use fontconfig objects so that 
Pango can use the native font backends on platforms other than X11.

John Ralls

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]