[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3.6 TTF_GetFontHinting

int TTF_GetFontHinting(TTF_Font *font)

font
The loaded font to get the hinting setting of.

Get the current hinting setting of the loaded font.

NOTE: Passing a NULL font into this function will cause a segfault.

Returns: The hinting type matching one of the following defined values:
TTF_HINTING_NORMAL
TTF_HINTING_LIGHT
TTF_HINTING_MONO
TTF_HINTING_NONE
If no hinting is set then TTF_HINTING_NORMAL is returned.

 
// get the loaded font's hinting setting
//TTF_Font *font;
int hinting=TTF_GetFontHinting(font);
printf("The font hinting is currently set to %s\n",
        hinting==0?"Normal":
        hinting==1?"Light":
        hinting==2?"Mono":
        hinting==3?"None":
        "Unknonwn");

See Also:
3.3.7 TTF_SetFontHinting,
5. Defines,
see section Hinting,
Font Hinting @ Wikipedia,
FreeType Hinting and Bitmap rendering,
FreeType Hinting Modes



This document was generated on November, 13 2009 using texi2html