Tao.Sdl SDK Documentation

SdlTtf.TTF_GlyphMetrics Method 

Get individual font glyph metrics

[Visual Basic]
Public Shared Function TTF_GlyphMetrics( _
   ByVal font As IntPtr, _
   ByVal ch As Short, _
   ByRef minx As Integer, _
   ByRef maxx As Integer, _
   ByRef miny As Integer, _
   ByRef maxy As Integer, _
   ByRef advance As Integer _
) As Integer
[C#]
public static int TTF_GlyphMetrics(
   IntPtr font,
   short ch,
   out int minx,
   out int maxx,
   out int miny,
   out int maxy,
   out int advance
);

Parameters

font
ch
minx
maxx
miny
maxy
advance

Return Value

Remarks

To understand what these metrics mean, here is a useful link: http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html

Binds to C-function in SDL_ttf.h

            int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
            

Example

                

See Also

SdlTtf Class | Tao.Sdl Namespace