SDL_ttf

SDL_ttf > Functions > Attributes

TTF_ByteSwapperUNICODE

void TTF_ByteSwappedUNICODE(int swapped)

swapped

This function tells SDL_ttf whether UNICODE (Uint16 per character) text is generally byteswapped. A UNICODE_BOM_NATIVE or UNICODE_BOM_SWAPPED character in a string will temporarily override this setting for the remainder of that string; however, this setting will be restored for the next one. The default mode is non-swapped (using the native endianness of the CPU).

// Turn on byte swapping for UNICODE text
TTF_ByteSwappedUNICODE(1);

See Also

5. Defines

SDL_ttf_kopie/Functions/Attributes/TTF_ByteSwappedUNICODE (last edited 2009-02-25 23:12:04 by sign-4d0949c8)