Tao.Sdl SDK Documentation

SdlTtf.TTF_SizeText Method 

Get size of LATIN1 text string as would be rendered

[Visual Basic]
Public Shared Function TTF_SizeText( _
   ByVal font As IntPtr, _
   ByVal text As String, _
   ByRef w As Integer, _
   ByRef h As Integer _
) As Integer
[C#]
public static int TTF_SizeText(
   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 TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
            

Example

                

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_SizeUTF8 | TTF_SizeUNICODE