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: Behdad Esfahbod
Subject: Re: [ft-devel] Autohinter: stem darkening, first rough prototype
Date: Fri, 28 Aug 2015 13:58:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Here's a piece of Python code for whoever wants to compare curves...

On 15-08-27 04:44 PM, Alexei Podtelezhnikov wrote:
> On Thu, Aug 27, 2015 at 10:46 AM, Nikolaus Waxweiler <address@hidden> wrote:
>>> The look of the function is documented and it blows my mind. I want to
>>> know what they smoked. You simply cannot find such beasts in nature
>>> short of quantum mechanics. I simply cannot trust that it was
>>> optimized rationally by looking at the rendering results, because
>>> optimizing in 8-dimensional space is not for humans and their eyes. My
>>> head explodes when I look at this function and I have this feeling in
>>> my mouth. I am scared and I cannot dare to touch it. God bless those
>>> who want to tune it.
>>
>>
>> Could you implement your curve in the context of
>> af_loader_compute_darkening() and send it to me? Because my brain currently
>> doesn't grok the math behind character and device-pixel space conversion ;D
>> Then we can compare and see what's better :)
>>
> 
> The simplest is to check if you see any difference with this set of 
> parameters:
> 
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1   0
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y1   500
> 
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X2  2000
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y2   0
> 
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X3  2000
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y3   0
> 
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X4  2000
> #define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y4     0
> 
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel
> .
> 

Attachment: stem.py
Description: Text Data


reply via email to

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