[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
- [ft-devel] Autohinter: stem darkening, first rough prototype, Nikolaus Waxweiler, 2015/08/23
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Alexei Podtelezhnikov, 2015/08/23
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Werner LEMBERG, 2015/08/23
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype,
Alexei Podtelezhnikov <=
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Werner LEMBERG, 2015/08/24
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Dave Arnold, 2015/08/25
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Alexei Podtelezhnikov, 2015/08/26
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Dave Arnold, 2015/08/26
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Werner LEMBERG, 2015/08/26
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Behdad Esfahbod, 2015/08/26
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Werner LEMBERG, 2015/08/27
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Alexei Podtelezhnikov, 2015/08/27
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Werner LEMBERG, 2015/08/27
- Re: [ft-devel] Autohinter: stem darkening, first rough prototype, Alexei Podtelezhnikov, 2015/08/27