Ejemplo n.º 1
0
 private static void OnFontFace(int callbackId, int index, IntPtr familyName,
                                int weight, int style, int stretch)
 {
     try
     {
         if (_initialized)
         {
             Faces faces = _facesCallbacks[callbackId];
             faces.Callback(index, Extend.StringFromNativeUtf8(familyName),
                            (FontWeight)weight, (FontStyle)style, (FontStretch)stretch);
         }
     }
     catch (Exception e)
     {
         Error.UnhandledException(e);
     }
 }