freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Taming CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y* for a gam


From: Werner LEMBERG
Subject: Re: [ft-devel] Taming CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y* for a gamma of ~2.2/sRGB?
Date: Mon, 24 Aug 2015 12:59:28 +0200 (CEST)

>>>> `FT_Outline_Embolden' *does* change the advance width!  You have
>>>> to save the metrics before the call, then restoring the original
>>>> values.
>>>
>>> Don't you mean experimental FT_Glyph_Embolden?
>>
>> Oops *blush*.  Please forget what I've said :-)
>
> Ok I'm not following what's going on.

I've mixed up two different FreeType functions...

> Saving advance_width, emboldening, restoring advance-width wouldn't
> work as the emboldened outline is shifter to the right so as to
> retain it's lsb.  We'd need to shift it left.

Yes, `centering' the glyph shape by reducing the lsb by 1/2 of the
emboldening value.


      Werner



reply via email to

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