Tao.Sdl SDK Documentation

SdlTtf.TTF_SizeUNICODE Method 

Get size of UNICODE text string as would be rendered

[Visual Basic]
Public Shared Function TTF_SizeUNICODE( _
   ByVal font As IntPtr, _
   ByVal text As String, _
   ByRef w As Integer, _
   ByRef h As Integer _
) As Integer
[C#]
public static int TTF_SizeUNICODE(
   IntPtr font,
   string text,
   out int w,
   out int h
);

Parameters

font
text
w
h

Return Value

Remarks

Binds to C-function in SDL_ttf.h

            int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
            

Example

                

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_SizeText | TTF_SizeUTF8