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

5. Defines

TTF_MAJOR_VERSION
2
SDL_ttf library major number at compilation time.
TTF_MINOR_VERSION
0
SDL_ttf library minor number at compilation time.
TTF_PATCHLEVEL
10
SDL_ttf library patch level at compilation time.
UNICODE_BOM_NATIVE
0xFEFF
This allows you to switch byte-order of UNICODE text data to native order, meaning the mode of your CPU. This is meant to be used in a UNICODE string that you are using with the SDL_ttf API.
UNICODE_BOM_SWAPPED
0xFFFE
This allows you to switch byte-order of UNICODE text data to swapped order, meaning the reversed mode of your CPU. So if your CPU is LSB, then the data will be interpretted as MSB. This is meant to be used in a UNICODE string that you are using with the SDL_ttf API.
TTF_STYLE_NORMAL
0x00
Used to indicate regular, normal, plain rendering style.
TTF_STYLE_BOLD
0x01
Used to indicate bold rendering style. This is used in a bitmask along with other styles.
TTF_STYLE_ITALIC
0x02
Used to indicate italicized rendering style. This is used in a bitmask along with other styles.
TTF_STYLE_UNDERLINE
0x04
Used to indicate underlined rendering style. This is used in a bitmask along with other styles.
TTF_STYLE_STRIKETHROUGH
0x08
Used to indicate strikethrough rendering style. This is used in a bitmask along with other styles.
TTF_HINTING_NORMAL
0
Used to indicate set hinting type to normal.
This corresponds to the default hinting algorithm, optimized for standard gray-level rendering
TTF_HINTING_LIGHT
0
Used to indicate set hinting type to light.
A lighter hinting algorithm for non-monochrome modes. Many generated glyphs are more fuzzy but better resemble its original shape. A bit like rendering on Mac OS X.
TTF_HINTING_MONO
0
Used to indicate set hinting type to monochrome.
Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes.
TTF_HINTING_NONE
0
Used to indicate set hinting type to none.
No hinting is used so the font may become very blurry or messy at smaller sizes.

See Also:
6. Glossary,


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

This document was generated on November, 13 2009 using texi2html