freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FT_Outline_Embolden() is Blurry


From: Infinality
Subject: Re: [ft-devel] FT_Outline_Embolden() is Blurry
Date: Sat, 16 Jun 2012 22:13:10 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

Well, I can agree with you that it may not be the proper spot for doing the rounding; I just can't imagine why anybody would ever want it to appear the way it does now unless no hinting is being used at all.

On 06/16/2012 10:07 PM, Alexei Podtelezhnikov wrote:
On Fri, Jun 15, 2012 at 5:31 PM, Infinality <address@hidden> wrote:
Sorry to resurrect an old thread here, but I think I have a solution that
preserves the addition of Y-weight at larger font sizes, while still keeping
the blur to a minimum:

In FT_Outline_Embolden (which is now FT_Outline_Embolden_XY), do this to
ystrength:
    ystrength = FT_PIX_FLOOR ( ystrength );
This rounding belongs at a higher level. Nothing stops an enlightened
user from properly rounding the strength before calling this function.
There is no need to hard code this at the low level function or
library. There may be a case to be made for this rounding in
FT_GlyphSlot_Embolden. Even then I would argue that hinting belongs to
hinting, it can follow the emboldening but should not be so invasive,





reply via email to

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