[HarfBuzz] What the correct way to set font size with FreeType?
khaledhosny at eglug.org
Wed Mar 6 22:40:28 PST 2013
On Wed, Mar 06, 2013 at 07:11:11PM -0500, Behdad Esfahbod wrote:
> 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.
Anyway, I ended up not using hb-ft.h and writing my own font functions
(still using FreeType though).
More information about the HarfBuzz