[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Re: [Freetype] mono rendering
From: |
Werner LEMBERG |
Subject: |
[Devel] Re: [Freetype] mono rendering |
Date: |
Mon, 12 Mar 2001 23:49:57 +0100 (CET) |
> I am trying to render glyph in mono and grayscale modes. Attached
> samples show that quality of grayscaled image much better than mono
> one.
Where are the problems? You won't get smooth edges in mono mode...
> Flags are: FT_LOAD_FORCE_AUTOHINT | FT_LOAD_RENDER for grayscale
> and FT_LOAD_FORCE_AUTOHINT | FT_LOAD_RENDER | FT_LOAD_MONOCHROME
> for mono.
>
> In freetype-1.x,using these flags got me very good image
> TTLOAD_SCALE_GLYPH | TTLOAD_HINT_GLYPH.
>
> Does somebody know what is the problem?
FT_LOAD_FORCE_AUTOHINT uses the autohinter, TT_LOAD_HINT_GLYPH uses
the TrueType bytecode interpreter for hinting -- the latter of course
produces better results.
Have you tried FT_LOAD_DEFAULT instead? If FreeType 2 is compiled
with the TT hinter, you should get the same results as with FT 1.
Werner