Tao.Sdl SDK Documentation

SdlTtf.TTF_ByteSwappedUNICODE Method 

This function tells the library whether UNICODE text is generally byteswapped. A UNICODE BOM character in a string will override this setting for the remainder of that string.

[Visual Basic]
Public Shared Sub TTF_ByteSwappedUNICODE( _
   ByVal swapped As Integer _
)
[C#]
public static void TTF_ByteSwappedUNICODE(
   int swapped
);

Parameters

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.

Return Value

Remarks

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, native endianess of the CPU.

Binds to C-function in SDL_ttf.h

            void TTF_ByteSwappedUNICODE(int swapped)
            

Example

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

See Also

SdlTtf Class | Tao.Sdl Namespace