/// <summary> /// Create object of ExportTTFFont. /// </summary> /// <param name="font"></param> public ExportTTFFont(Font font) { FDpiFX = 96f / DrawUtils.ScreenDpi; FSourceFont = new Font(font.Name, 750 * FDpiFX, font.Style); FSaved = false; FTextMetric = new OutlineTextMetric(); FUsedGlyphIndexes = new List <ushort>(); FUsedAlphabetUnicode = new List <ushort>(); FWidths = new List <int>(); tempBitmap = new Bitmap(1, 1); FUSCache = IntPtr.Zero; FDigitSubstitute = new SCRIPT_DIGITSUBSTITUTE(); ScriptRecordDigitSubstitution(0x0400, ref FDigitSubstitute); }
private static extern int ScriptApplyDigitSubstitution( ref SCRIPT_DIGITSUBSTITUTE psds, ref SCRIPT_CONTROL psc, ref SCRIPT_STATE pss);
private static extern uint ScriptRecordDigitSubstitution(uint lcid, ref SCRIPT_DIGITSUBSTITUTE psds);