示例#1
0
 public static IndexSubTable2 Read(BinaryReaderFont reader)
 {
     return(new IndexSubTable2 {
         header = IndexSubHeader.Read(reader),
         imageSize = reader.ReadUInt32(),
         bigMetrics = BigGlyphMetrics.Read(reader)
     });
 }
示例#2
0
        public static GlyphBitmapData18 Read(BinaryReaderFont reader)
        {
            GlyphBitmapData18 value = new GlyphBitmapData18 {
                glyphMetrics = BigGlyphMetrics.Read(reader),
                dataLen      = reader.ReadUInt32()
            };

            value.data = reader.ReadBytes((int)value.dataLen);
            return(value);
        }
示例#3
0
        public static GlyphBitmapData6 Read(BinaryReaderFont reader, int byteSize)
        {
            GlyphBitmapData6 value = new GlyphBitmapData6 {
                bigMetrics = BigGlyphMetrics.Read(reader)
            };

            byteSize       -= BigGlyphMetrics.ByteSize;
            value.imageData = reader.ReadBytes(byteSize);
            return(value);
        }
示例#4
0
        public static GlyphBitmapData9 Read(BinaryReaderFont reader)
        {
            GlyphBitmapData9 value = new GlyphBitmapData9 {
                bigMetrics    = BigGlyphMetrics.Read(reader),
                numComponents = reader.ReadUInt16()
            };

            value.components = EbdtComponent.ReadArray(reader, value.numComponents);
            return(value);
        }
示例#5
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);
        }