freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Autohinter: stem darkening, first rough prototype


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] Autohinter: stem darkening, first rough prototype
Date: Sun, 23 Aug 2015 23:18:27 -0400

>>> 1. The function to compute how much darkening to apply is a crude
>>> copy-pasta of the real thing in cff/cf2font.c
>>
>> Is this the one with four parameters? I do not understand why it has
>> to be so complex. I am not a big fan unless someone can explain it?
>
> I haven't yet looked closely at the new code, but I think that the
> original one in function `cf2_computeDarkening' (in file `cf2font.c')
> is quite straightforward – and it is well commented :-)

I do not get why this function should be piecewise linear, rather than
just linear. Why can't we just use something like this?

darkenAmount = 0.5 pixels - ( scaledStem / 4 )

Thank you,
Alexei



reply via email to

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