/// <summary> /// Determins if filename is a graphite font or not. /// </summary> public static bool IsGraphiteFont(string filename) { if (!File.Exists(filename)) { return(false); } IntPtr face = Graphite2Api.MakeFileFace(filename, FaceOptions.face_default); if (face == IntPtr.Zero) { return(false); } Graphite2Api.FaceDestroy(face); return(true); }
public void Dispose() { Graphite2Api.FaceDestroy(_face); }