public ushort axisNameID; // The name ID for entries in the 'name' table that provide a display name for this axis. public void Read(TTFReader r) { this.axisTag = r.ReadString(4); this.minValue = r.ReadFixed(); this.defaultValue = r.ReadFixed(); this.maxValue = r.ReadFixed(); r.ReadInt(out this.flags); r.ReadInt(out this.axisNameID); }
public void Read(TTFReader r) { r.ReadInt(out this.minorVersion); r.ReadInt(out this.majorVersion); this.italicAngle = r.ReadFixed(); r.ReadInt(out this.underlinePosition); r.ReadInt(out this.underlineThickness); r.ReadInt(out this.isFixedPitch); r.ReadInt(out this.minMemType42); r.ReadInt(out this.maxMemType42); r.ReadInt(out this.minMemType1); r.ReadInt(out this.maxMemType1); if (this.majorVersion == 2 && this.minorVersion == 0) { r.ReadInt(out this.numGlyphs); this.glyphNameIndex = new List <ushort>(); for (int i = 0; i < this.numGlyphs; ++i) { this.glyphNameIndex.Add(r.ReadUInt16()); } this.stringData = new List <string>(); //while(r.GetPosition() < end) // this.stringData.Add(r.ReadPascalString()); //for(int i = 0; i < ) } else if (this.majorVersion == 2 && this.minorVersion == 5) { r.ReadInt(out this.numGlyphs); this.offset = new List <byte>(); for (int i = 0; i < this.numGlyphs; ++i) { this.offset.Add(r.ReadUInt8()); } } else if (this.majorVersion == 3 && this.minorVersion == 0) { } // Do nothing }
public void Read(TTFReader r) { r.ReadInt(out this.majorVersion); r.ReadInt(out this.minorVersion); this.fontRevision = r.ReadFixed(); r.ReadInt(out this.checksumAdjustment); r.ReadInt(out this.magicNumber); r.ReadInt(out this.flags); r.ReadInt(out this.unitsPerEm); this.created = r.ReadDate(); this.modified = r.ReadDate(); r.ReadInt(out this.xMin); r.ReadInt(out this.yMin); r.ReadInt(out this.xMax); r.ReadInt(out this.yMax); r.ReadInt(out this.macStyle); r.ReadInt(out this.lowestRecPPEM); r.ReadInt(out this.fontDirectionHint); r.ReadInt(out this.indexToLocFormat); r.ReadInt(out this.glyphDataFormat); }