/// <exception cref="System.IO.IOException"/> internal TrueTypeFont(String ttcPath, int ttcIndex) { fontParser = new OpenTypeParser(ttcPath, ttcIndex); fontParser.LoadTables(true); InitializeFontProperties(); }
/// <exception cref="System.IO.IOException"/> public TrueTypeFont(byte[] ttf) { fontParser = new OpenTypeParser(ttf); fontParser.LoadTables(true); InitializeFontProperties(); }
/// <exception cref="System.IO.IOException"/> internal TrueTypeFont(byte[] ttc, int ttcIndex) { fontParser = new OpenTypeParser(ttc, ttcIndex); fontParser.LoadTables(true); InitializeFontProperties(); }
/// <exception cref="System.IO.IOException"/> public TrueTypeFont(String path) { fontParser = new OpenTypeParser(path); fontParser.LoadTables(true); InitializeFontProperties(); }
/// <exception cref="System.IO.IOException"/> private static FontProgramDescriptor FetchOpenTypeFontDescriptor(OpenTypeParser fontParser) { fontParser.LoadTables(false); return(new FontProgramDescriptor(fontParser.GetFontNames(), fontParser.GetPostTable().italicAngle, fontParser .GetPostTable().isFixedPitch)); }