sdl-ttf Reference Manual

Synopsis

public class Font {
    public                              Font                      ( string              file,
                                                                    int                 ptsize ) ;
    public                              Font.index                ( string              file,
                                                                    int                 ptsize,
                                                                    long                index ) ;
    public                              Font.RW                   ( SDL.RWops           src,
                                                                    int                 freesrc = ÿ%,
                                                                    int                 ptsize ) ;
    public                              Font.RWindex              ( SDL.RWops           src,
                                                                    int                 freesrc = ÿ%,
                                                                    int                 ptsize,
                                                                    long                index ) ;


    public    FontStyle                 get_style                 (  ) ;
    public    FontStyle                 set_style                 ( FontStyle           style ) ;
    public    int                       height                    (  ) ;
    public    int                       ascent                    (  ) ;
    public    int                       descent                   (  ) ;
    public    int                       lineskip                  (  ) ;
    public    long                      faces                     (  ) ;
    public    int                       is_fixed_width            (  ) ;
    public    string                    family                    (  ) ;
    public    string                    style                     (  ) ;
    public    int                       metrics                   ( uint16              ch,
                                                                    int                 minx,
                                                                    int                 maxx,
                                                                    int                 miny,
                                                                    int                 maxy,
                                                                    int                 advance ) ;
    public    int                       size                      ( string              text,
                                                                    int                 w,
                                                                    int                 h ) ;
    public    int                       size_utf8                 ( string              text,
                                                                    int                 w,
                                                                    int                 h ) ;
    public    int                       size_unicode              ( uint16[]            text,
                                                                    int                 w,
                                                                    int                 h ) ;
    public    SDL.Surface?              render                    ( string              text,
                                                                    SDL.Color           fg ) ;
    public    SDL.Surface?              render_utf8               ( string              text,
                                                                    SDL.Color           fg ) ;
    public    SDL.Surface?              render_unicode            ( uint16[]            text,
                                                                    SDL.Color           fg ) ;
    public    SDL.Surface?              render_shaded             ( string              text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;
    public    SDL.Surface?              render_shaded_utf8        ( string              text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;
    public    SDL.Surface?              render_shaded_unicode     ( uint16[]            text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;
    public    SDL.Surface?              render_blended            ( string              text,
                                                                    SDL.Color           fg ) ;
    public    SDL.Surface?              render_blended_utf8       ( string              text,
                                                                    SDL.Color           fg ) ;
    public    SDL.Surface?              render_blended_unicode    ( uint16[]            text,
                                                                    SDL.Color           fg ) ;
}

Font Description

Details

Constructor Details

Font ()
    public                              Font                      ( string              file,
                                                                    int                 ptsize ) ;		

Font.index ()
    public                              Font.index                ( string              file,
                                                                    int                 ptsize,
                                                                    long                index ) ;		

Font.RW ()
    public                              Font.RW                   ( SDL.RWops           src,
                                                                    int                 freesrc = ÿ%,
                                                                    int                 ptsize ) ;		

Font.RWindex ()
    public                              Font.RWindex              ( SDL.RWops           src,
                                                                    int                 freesrc = ÿ%,
                                                                    int                 ptsize,
                                                                    long                index ) ;		

Field Details

Signal Details

Property Details

Method Details

get_style ()
    public    FontStyle                 get_style                 (  ) ;		

set_style ()
    public    FontStyle                 set_style                 ( FontStyle           style ) ;		

height ()
    public    int                       height                    (  ) ;		

ascent ()
    public    int                       ascent                    (  ) ;		

descent ()
    public    int                       descent                   (  ) ;		

lineskip ()
    public    int                       lineskip                  (  ) ;		

faces ()
    public    long                      faces                     (  ) ;		

is_fixed_width ()
    public    int                       is_fixed_width            (  ) ;		

family ()
    public    string                    family                    (  ) ;		

style ()
    public    string                    style                     (  ) ;		

metrics ()
    public    int                       metrics                   ( uint16              ch,
                                                                    int                 minx,
                                                                    int                 maxx,
                                                                    int                 miny,
                                                                    int                 maxy,
                                                                    int                 advance ) ;		

size ()
    public    int                       size                      ( string              text,
                                                                    int                 w,
                                                                    int                 h ) ;		

size_utf8 ()
    public    int                       size_utf8                 ( string              text,
                                                                    int                 w,
                                                                    int                 h ) ;		

size_unicode ()
    public    int                       size_unicode              ( uint16[]            text,
                                                                    int                 w,
                                                                    int                 h ) ;		

render ()
    public    SDL.Surface?              render                    ( string              text,
                                                                    SDL.Color           fg ) ;		

render_utf8 ()
    public    SDL.Surface?              render_utf8               ( string              text,
                                                                    SDL.Color           fg ) ;		

render_unicode ()
    public    SDL.Surface?              render_unicode            ( uint16[]            text,
                                                                    SDL.Color           fg ) ;		

render_shaded ()
    public    SDL.Surface?              render_shaded             ( string              text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;		

render_shaded_utf8 ()
    public    SDL.Surface?              render_shaded_utf8        ( string              text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;		

render_shaded_unicode ()
    public    SDL.Surface?              render_shaded_unicode     ( uint16[]            text,
                                                                    SDL.Color           fg,
                                                                    SDL.Color           bg ) ;		

render_blended ()
    public    SDL.Surface?              render_blended            ( string              text,
                                                                    SDL.Color           fg ) ;		

render_blended_utf8 ()
    public    SDL.Surface?              render_blended_utf8       ( string              text,
                                                                    SDL.Color           fg ) ;		

render_blended_unicode ()
    public    SDL.Surface?              render_blended_unicode    ( uint16[]            text,
                                                                    SDL.Color           fg ) ;		


Created by Valadoc