Example #1
0
            bool FillOutInfo()
            {
                _fontMetrics = new FontMetrics(
                    SDL_ttf.TTF_FontHeight(_sdlFont),
                    SDL_ttf.TTF_FontAscent(_sdlFont),
                    SDL_ttf.TTF_FontDescent(_sdlFont),
                    SDL_ttf.TTF_FontDescent(_sdlFont));

                _style   = SDL_ttf.TTF_GetFontStyle(_sdlFont);
                _outline = SDL_ttf.TTF_GetFontOutline(_sdlFont);
                _hinting = SDL_ttf.TTF_GetFontHinting(_sdlFont);
                _kerning = SDL_ttf.TTF_GetFontKerning(_sdlFont) != 0;

                return(true);
            }
Example #2
0
 public int Ascent()
 {
     return(SDL_ttf.TTF_FontAscent(myPtr));
 }
Example #3
0
File: Font.cs Project: xxami/Pulsus
 public int GetAscent()
 {
     return(SDL_ttf.TTF_FontAscent(handle));
 }