Re: Synthesizing fonts using Cairo/Pango

2017-07-19 Thread Behdad Esfahbod
On Wed, Jul 19, 2017 at 2:13 AM, Carl Hetherington wrote: > Hi Behdad, > > [snip] > > > Try calling FcInitLoadConfigAndFonts first for example... > > Many, many thanks: using FcInitLoadConfig() instead of FcConfigCreate() > appears to have fixed it! > See! You didn't include

Re: Synthesizing fonts using Cairo/Pango

2017-07-19 Thread Carl Hetherington
Hi Behdad, [snip] > Try calling FcInitLoadConfigAndFonts first for example... Many, many thanks: using FcInitLoadConfig() instead of FcConfigCreate() appears to have fixed it! All the best, Carl >   > Thank you, > Carl > > On Tue, 18 Jul 2017, Behdad Esfahbod wrote: > >

Re: Synthesizing fonts using Cairo/Pango

2017-07-18 Thread Behdad Esfahbod
On Tue, Jul 18, 2017 at 1:32 AM, Carl Hetherington wrote: > Hi Behdad, > > This is on Ubuntu 16.04. It works fine if I remove the > FcConfigAppFontAddFile. Humm . I wouldn't have expected that. > I'm happy to build Pango/Cairo from source and > do any debugging that

Re: Synthesizing fonts using Cairo/Pango

2017-07-18 Thread Carl Hetherington
Hi Behdad, This is on Ubuntu 16.04. It works fine if I remove the FcConfigAppFontAddFile. I'm happy to build Pango/Cairo from source and do any debugging that would help. Thank you, Carl On Tue, 18 Jul 2017, Behdad Esfahbod wrote: > pangocairo is supposed to do that automatically.  Is this

Synthesizing fonts using Cairo/Pango

2017-07-17 Thread Carl Hetherington
Hi all, I am writing text to a Cairo RGB24 ImageSurface using code along the lines of FcConfigAppFontAddFile (..., "Arial.ttf"); auto surface = Cairo::ImageSurface::create (...); auto context = Cairo::Context::create (surface); auto layout = Pango::Layout::create (context);