|
From: | Infinality |
Subject: | Re: [ft-devel] FT_Outline_Embolden() is Blurry |
Date: | Fri, 15 Jun 2012 16:31:07 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
In FT_Outline_Embolden (which is now FT_Outline_Embolden_XY), do this to ystrength:
ystrength = FT_PIX_FLOOR ( ystrength );Since the emboldening function uses 64 to equal ~1 pixel, rounding down to the nearest whole pixel removes the blur. Not sure if you're willing to implement this at this point, given that developers have the option of using the XY function, but wanted to mention it anyway.
On 01/04/2012 01:54 AM, Werner LEMBERG wrote:
The code has been written in a quite generic way. IMHO, you need both horizontal and vertical emboldening for larger font sizes. I fully agree that it is suboptimal for small font sizes which are going to be used in combination with other fonts.In my patches, I disable the y direction completely, and the aesthetic improvements are dramatic, in my opinion. Is this something that can be done in Freetype instead? Or perhaps can the function be split into two?It can't be done currently. Please suggest a new API. And provide a patch (with a ChangeLog entry) :-) Werner
[Prev in Thread] | Current Thread | [Next in Thread] |