Beispiel #1
0
 public static EbdtComponent Read(BinaryReaderFont reader)
 {
     return(new EbdtComponent {
         glyphID = reader.ReadUInt16(),
         xOffset = reader.ReadSByte(),
         yOffset = reader.ReadSByte()
     });
 }
Beispiel #2
0
 public static SmallGlyphMetrics Read(BinaryReaderFont reader)
 {
     return(new SmallGlyphMetrics {
         height = reader.ReadByte(),
         width = reader.ReadByte(),
         bearingX = reader.ReadSByte(),
         bearingY = reader.ReadSByte(),
         advance = reader.ReadByte()
     });
 }
Beispiel #3
0
 public static BigGlyphMetrics Read(BinaryReaderFont reader)
 {
     return(new BigGlyphMetrics {
         height = reader.ReadByte(),
         width = reader.ReadByte(),
         horiBearingX = reader.ReadSByte(),
         horiBearingY = reader.ReadSByte(),
         horiAdvance = reader.ReadByte(),
         vertBearingX = reader.ReadSByte(),
         vertBearingY = reader.ReadSByte(),
         vertAdvance = reader.ReadByte()
     });
 }
Beispiel #4
0
 public static SbitLineMetrics Read(BinaryReaderFont reader)
 {
     return(new SbitLineMetrics {
         ascender = reader.ReadSByte(),
         descender = reader.ReadSByte(),
         widthMax = reader.ReadByte(),
         caretSlopeNumerator = reader.ReadSByte(),
         caretSlopeDenominator = reader.ReadSByte(),
         caretOffset = reader.ReadSByte(),
         minOriginSB = reader.ReadSByte(),
         minAdvanceSB = reader.ReadSByte(),
         maxBeforeBL = reader.ReadSByte(),
         minAfterBL = reader.ReadSByte(),
         pad1 = reader.ReadSByte(),
         pad2 = reader.ReadSByte()
     });
 }