[HarfBuzz] What the correct way to set font size with FreeType?

Behdad Esfahbod behdad at behdad.org
Wed Mar 6 16:11:11 PST 2013

On 13-03-06 03:52 AM, Khaled Hosny wrote:
> It seems the issue I'm seeing is a FreeType bug with CFF fonts that have
> embedded bitmaps:
> http://lists.gnu.org/archive/html/freetype/2013-03/msg00009.html
> If I remove the FT_LOAD_NO_HINTING flag or added FT_LOAD_NO_BITMAP I get
> the correct advances. FT_LOAD_NO_BITMAP should be fine for my use case
> since we don't support bitmap fonts anyway, but I'm not sure if it is OK
> for the general case (FreeType doc says the flag is ignored for bitmap
> only fonts, but what effect does it have on fonts with embedded
> bitmaps?).

Donno.  One thing I do know is that hb-ft.h needs to be updated to take
load_flags from the user.  You may have given me just enough push to go ahead
and do that.


More information about the HarfBuzz mailing list