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



Thank you John. I'll try altering the build parameters as you've suggested.

I take your point about native font management.

The issue is that we've found Win32 native font selection to be erratic, changing fonts between Pango layout objects, despite a static font description. We now bundle fonts with the distributable to assure consistency.

If there is a native way to stream in packaged fonts other than fontconfig, then we will try that.

On 16 Mar 2018 20:52, "John Ralls" <jralls ceridwen us> wrote:


> 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?
>
> Jeff.
>
> 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.

Regards,
John Ralls




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