[cairo] [PATCH] Apply GASP parmeters to TrueType fonts

Nicholas Miell nmiell at gmail.com
Mon Jan 23 14:33:05 PST 2012

On 01/23/2012 02:22 PM, James Cloos wrote:
>>>>>> "NM" == Nicholas Miell <nmiell at gmail.com> writes:
> NM> These flags override FontConfig and the Cairo API settings entirely in
> NM> order to always render fonts correctly. I've added a comment to that effect.
> The users’ preferences, as specificed in fontconfig, always must override
> anything in the font.
> Whether gasp tables are “correct” is a matter of opinion.  Blindly
> accepting the gasp recomentations can result in bitmap glyphs uglifying
> an otherwise anti-aliased display.  

The GASP table isn't involved in the choice between bitmap glyphs and
outline glyphs.

> The ability to query the fonts’ gasp tables is a good thing, but only
> for users who want to do that.  Many of us do not.  The gasp query
> probably should be done in fontconfig, arranged so that a fonts.conf
> snippet can query and apply the gasp recommendations.  That would ensure
> that users can choose whether to apply or ignore them.

I don't understand this at all. Why would you want a "render fonts
wrong" option?

More information about the cairo mailing list