Example #1
0
 internal FontGlyph ReloadGlyphFromChar(char unicodeChar, int pixelSize)
 {
     if (currentFacePixelSize != pixelSize)
     {
         currentFacePixelSize = pixelSize;
         NativeMyFontsLib.MyFtSetPixelSizes(this.ftFaceHandle, pixelSize);
     }
     //--------------------------------------------------
     unsafe
     {
         ExportGlyph exportTypeFace = new ExportGlyph();
         NativeMyFontsLib.MyFtLoadChar(ftFaceHandle, unicodeChar, ref exportTypeFace);
         FontGlyph fontGlyph = new FontGlyph();
         BuildGlyph(fontGlyph, &exportTypeFace, pixelSize);
         return(fontGlyph);
     }
 }
Example #2
0
 public static extern int MyFtLoadGlyph(IntPtr faceHandle, uint codepoint, ref ExportGlyph ftOutline);
Example #3
0
 public static extern int MyFtLoadChar(IntPtr faceHandle, int charcode, ref ExportGlyph ftOutline);