Re: Getting different sizes from pango_layout_get_pixel_extents on ubuntu 16.04 vs 17.10?

2018-01-31 Thread Behdad Esfahbod
FreeType often changes things enough to result in such differences... On Wed, Jan 31, 2018 at 7:54 AM, Dan Kegel wrote: > On Wed, Jan 31, 2018 at 1:30 AM, Alexander Larsson > wrote: > >> It gets a slightly different result depending on operating system. > > >

Re: Getting different sizes from pango_layout_get_pixel_extents on ubuntu 16.04 vs 17.10?

2018-01-31 Thread Dan Kegel
On Wed, Jan 31, 2018 at 1:30 AM, Alexander Larsson wrote: >> It gets a slightly different result depending on operating system. > > The font file contains most of the layout information, but fontconfig > also reads various config snippets from /etc/fonts/conf.d/ that can >

Re: Getting different sizes from pango_layout_get_pixel_extents on ubuntu 16.04 vs 17.10?

2018-01-31 Thread Alexander Larsson
On Tue, Jan 30, 2018 at 10:59 PM, Dan Kegel wrote: > Hi folks. > We have a minimal test program that selects Bitstream Vera Sans, > calls pango_layout_set_font_description, calls pango_layout_set_text > with a test string, then calls pango_layout_get_pixel_extents. > It gets a

Getting different sizes from pango_layout_get_pixel_extents on ubuntu 16.04 vs 17.10?

2018-01-30 Thread Dan Kegel
Hi folks. We have a minimal test program that selects Bitstream Vera Sans, calls pango_layout_set_font_description, calls pango_layout_set_text with a test string, then calls pango_layout_get_pixel_extents. It gets a slightly different result depending on operating system. Ubuntu 17.10: output is