Example #1
0
 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);
 }
Example #2
0
        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);
        }
Example #3
0
 public static extern IntPtr al_load_ttf_font(string filename, int size, TtfFlags flags);