예제 #1
0
 public static BitmapScale Read(BinaryReaderFont reader)
 {
     return(new BitmapScale {
         hori = SbitLineMetrics.Read(reader),
         vert = SbitLineMetrics.Read(reader),
         ppemX = reader.ReadByte(),
         ppemY = reader.ReadByte(),
         substitutePpemX = reader.ReadByte(),
         substitutePpemY = reader.ReadByte()
     });
 }
예제 #2
0
        public static BitmapSize Read(BinaryReaderFont reader)
        {
            BitmapSize value = new BitmapSize {
                indexSubTableArrayOffset = reader.ReadUInt32(),
                indexTablesSize          = reader.ReadUInt32(),
                numberofIndexSubTables   = reader.ReadUInt32(),
                colorRef        = reader.ReadUInt32(),
                hori            = SbitLineMetrics.Read(reader),
                vert            = SbitLineMetrics.Read(reader),
                startGlyphIndex = reader.ReadUInt16(),
                endGlyphIndex   = reader.ReadUInt16(),
                ppemX           = reader.ReadByte(),
                ppemY           = reader.ReadByte(),
                bitDepth        = (BitDepth)reader.ReadByte(),
                flags           = (BitmapFlags)reader.ReadByte()
            };

            return(value);
        }