mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-21 00:38:12 +02:00
Apply LCD filter
This commit is contained in:
parent
68f7652dbb
commit
54cfe58d76
1 changed files with 9 additions and 0 deletions
|
|
@ -48,6 +48,15 @@ int main (int argc, char const *argv[])
|
|||
printf("Error while initialising library\n");
|
||||
}
|
||||
|
||||
if (render_mode > 1 )
|
||||
{
|
||||
error = FT_Library_SetLcdFilter( library,
|
||||
FT_LCD_FILTER_DEFAULT );
|
||||
if(error){
|
||||
printf("Error while setting LCD filter\n");
|
||||
}
|
||||
}
|
||||
|
||||
error = FT_New_Face( library,
|
||||
font_file,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue