Exemple #1
0
        public bool load(IntPtr ttf, SDL.SDL_Color color)
        {
            if (ttf == null)
            {
                return(false);
            }

            SDL_FontCache.FC_ClearFont(font);
            return(SDL_FontCache.FC_LoadFontFromTTF(font, ttf, color) != 0);
        }
Exemple #2
0
 public void free()
 {
     SDL_FontCache.FC_ClearFont(font);
 }
Exemple #3
0
 public bool load(string filename_ttf, UInt32 pointSize, SDL.SDL_Color color, int style = SDL_ttf.TTF_STYLE_NORMAL)
 {
     SDL_FontCache.FC_ClearFont(font);
     return(SDL_FontCache.FC_LoadFont(font, filename_ttf, (int)pointSize, color, style) != 0);
 }