[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] anti-aliasing question
From: |
Tor Andersson |
Subject: |
Re: [ft] anti-aliasing question |
Date: |
Sat, 6 Feb 2010 14:04:43 +0100 |
On 2/5/10, Dave Calkins <address@hidden> wrote:
> 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).
>
> 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.
I'm referring to the third parameter of FT_Set_Transform, but you
should also check your OpenGL transform matrices and the texture
sampling mode.
If that fails, could you perhaps attach some sample
renderings in png format?
- Re: [ft] anti-aliasing question, Werner LEMBERG, 2010/02/01
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/05
- Re: [ft] anti-aliasing question, Tor Andersson, 2010/02/05
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/05
- Re: [ft] anti-aliasing question,
Tor Andersson <=
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/06
- Re: [ft] anti-aliasing question, Werner LEMBERG, 2010/02/07
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/07
- Re: [ft] anti-aliasing question, Werner LEMBERG, 2010/02/07
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/07
- Re: [ft] anti-aliasing question, Werner LEMBERG, 2010/02/07
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/07
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/07
- Re: [ft] anti-aliasing question, Werner LEMBERG, 2010/02/08
- Re: [ft] anti-aliasing question, Dave Calkins, 2010/02/09