|
From: | Dave Calkins |
Subject: | Re: [ft] anti-aliasing question |
Date: | Fri, 05 Feb 2010 14:52:48 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
On 2/5/2010 11:50 AM, Tor Andersson wrote:
On Fri, Feb 5, 2010 at 2:19 PM, Dave Calkins<address@hidden> wrote:I switched to using the default load flags (as opposed to the "no hinting" flag which was being passed by FreeTypeGL), but this doesn't seem to have made a difference. The text is still blurry.You get less blurrier output if you don't do subpixel position of glyphs.How do I control whether or not subpixel positioning of the glyphs occurs?What is the translation component of the transform? If it is non-zero then the grid fitting won't help against blurriness (since the pixel-aligned outline will then be shifted to between pixels, making the rendering all blurry). -Tor
Where would the transform be specified? Are you referring to a transform provided to FreeType when it renders the glyphs?
I took a look through the FreeTypeGL source and they're calling FT_RenderGlyph and then accessing glyph->bitmap to get the gray-scale image and loading this into an OpenGL 2D texture. This texture is used as the alpha channel to render a rectangle to the screen of the desired color.
I'm not certain which transform you're referring to though.
[Prev in Thread] | Current Thread | [Next in Thread] |