示例#1
0
 public static IndexSubTable2 Read(BinaryReaderFont reader)
 {
     return(new IndexSubTable2 {
         header = IndexSubHeader.Read(reader),
         imageSize = reader.ReadUInt32(),
         bigMetrics = BigGlyphMetrics.Read(reader)
     });
 }
示例#2
0
        /// <summary>
        /// One per glyph.
        /// </summary>
        //public GlyphIdOffsetPair[] glyphArray;

        public static IndexSubTable4 Read(BinaryReaderFont reader)
        {
            IndexSubTable4 value = new IndexSubTable4();

            value.header    = IndexSubHeader.Read(reader);
            value.numGlyphs = reader.ReadUInt32();
            value.position  = reader.Position;
            //value.glyphArray = GlyphIdOffsetPair.ReadArray(reader, (int)value.numGlyphs + 1);
            return(value);
        }
示例#3
0
        public static IndexSubTable3 Read(BinaryReaderFont reader, int count)
        {
            IndexSubTable3 value = new IndexSubTable3();

            value.header   = IndexSubHeader.Read(reader);
            value.position = reader.Position;
            value.count    = count;
            //value.offsetArray = reader.ReadUInt16Array(count + 1);
            return(value);
        }
示例#4
0
        /// <summary>
        /// One per glyph, sorted by glyph ID.
        /// </summary>
        //public ushort[] glyphIdArray;

        public static IndexSubTable5 Read(BinaryReaderFont reader)
        {
            IndexSubTable5 value = new IndexSubTable5();

            value.header     = IndexSubHeader.Read(reader);
            value.imageSize  = reader.ReadUInt32();
            value.bigMetrics = BigGlyphMetrics.Read(reader);
            value.numGlyphs  = reader.ReadUInt32();
            value.position   = reader.Position;
            //value.glyphIdArray = reader.ReadUInt16Array((int)value.numGlyphs);
            return(value);
        }