/// <exception cref="System.IO.IOException"/> protected internal OpenTypeFontTableReader(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, IDictionary <int, Glyph> indexGlyphMap, int unitsPerEm) { this.rf = rf; this.tableLocation = tableLocation; this.indexGlyphMap = indexGlyphMap; this.gdef = gdef; this.unitsPerEm = unitsPerEm; }
public virtual void TestLookupFlagWithMarkAttachmentTypeAndBaseGlyph() { String fontName = "Padauk-Regular.ttf"; TrueTypeFont fontProgram = (TrueTypeFont)FontProgramFactory.CreateFont(RESOURCE_FOLDER + fontName); OpenTypeGdefTableReader gdef = fontProgram.GetGdefTable(); int glyphCode = 165; NUnit.Framework.Assert.AreEqual(OtfClass.GLYPH_BASE, gdef.GetGlyphClassTable().GetOtfClass(glyphCode)); NUnit.Framework.Assert.IsFalse(gdef.IsSkip(glyphCode, (1 << 8))); }
public GlyphPositioningTableReader(RandomAccessFileOrArray rf, int gposTableLocation, OpenTypeGdefTableReader gdef, IDictionary <int, Glyph> indexGlyphMap, int unitsPerEm) : base(rf, gposTableLocation, gdef, indexGlyphMap, unitsPerEm) { StartReadingTable(); }