freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FT_Slot_LoadFunc load_flags info?


From: Werner LEMBERG
Subject: Re: [ft-devel] FT_Slot_LoadFunc load_flags info?
Date: Sun, 08 Nov 2009 07:50:00 +0100 (CET)

>> To summarize: The advance width gives the distance from the origin
>> of a glyph to the origin of the next glyph.
> 
> Hmmm, so if I set the advance equal to the glyph width, they should
> be packed tight together?

Yes (if there is no kerning, of course).

> When I change the advance to be the glyph width, one of the
> problematic Cairo cases seems better.  However, that makes little
> sense to be, since we only ever draw text one glyph at a time, with
> our layout determining the position/size/angle/etc of each glyph.

I fear you have to debug this issue by yourself...

> Seriously though, when we load glyphs (either via FT or Cairo), we
> only use NO_HINTING (And IGNORE_TRANSFORM it seems, in one case).
> All the other flags my driver receives, including
> IGNORE_GLOBAL_ADVANCE_WIDTH, are being turned on by FT/Cairo.

Hmm.

> In this particular case though, _cairo_ft_scaled_glyph_init()
> (src/cairo-ft-font.c) contains this line:
>     /* Ignore global advance unconditionally */
>     load_flags |= FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;
> I don't know why ...

You should ask the Cairo developers for the reasons.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]