public static Font LoadFont(string filename, int size, TtfFlags flags) { var font = TtfAddon.al_load_ttf_font(filename, size, flags); if (font == IntPtr.Zero) { return null; } return new Font(font); }
public static Font LoadFont(string filename, int size, TtfFlags flags) { var font = Ttf.LoadFont(filename, size, flags); if (font == null) { throw new Exception(String.Format("LoadFont({0}, {1}, {2}) Failed", filename, size, flags)); } return(font); }
public static extern IntPtr al_load_ttf_font(string filename, int size, TtfFlags flags);