[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Clear Type
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Clear Type |
Date: |
Sun, 21 Nov 2010 07:54:52 +0100 (CET) |
> I have succesfully implemented FreeType, but have yet to get Clear
> Type rendering to work.
Be careful: ClearType consists of two parts.
1. Special rendering to a LCD by tripling the horizontal resolution,
then applying a filter to address the three colours of a pixel
separately which must follow a certain geometry. FreeType
supports this.
2. Use a special hinting engine which has some code to make item 1
work with both new, specially crafted fonts and with legacy
ones. FreeType doesn't support this yet.
> I uncommented this line in "ftoption.h":
> #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
OK.
> Then I rebuilt the library and recompiled my project. However, I
> get an error saying the identifier "FT_Library_SetLcdFilter" is not
> found when I add this line:
>
> FT_Library_SetLcdFilter(library, FT_LCD_FILTER_DEFAULT);
You have
#include FT_LCD_FILTER_H
right?
Werner