SDL_ttf
SDL_ttf > Functions > Attributes
TTF_ByteSwapperUNICODE
void TTF_ByteSwappedUNICODE(int swapped)
swapped
- if non-zero then UNICODE data is byte swapped relative to the CPU's native endianess. if zero, then do not swap UNICODE data, use the CPU's native endianess.
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);
