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); }
public void free() { SDL_FontCache.FC_ClearFont(font); }
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); }