Beispiel #1
0
 public GlyphReader(FontFileReader reader) {
     this.reader = reader;
     this.glyfEntry = reader.GetDictionaryEntry(TableNames.Glyf);
     this.loca = reader.GetIndexToLocationTable();
 }
Beispiel #2
0
 /// <summary>
 ///     Reads the contents of the "cvt" table from the current position 
 ///     in the supplied stream.
 /// </summary>
 /// <param name="reader"></param>
 protected internal override void Read(FontFileReader reader) {
     values = new short[Entry.Length/PrimitiveSizes.FWord];
     for (int i = 0; i < values.Length; i++) {
         values[i] = reader.Stream.ReadFWord();
     }
 }
Beispiel #3
0
 /// <summary>
 ///     Reads the contents of the "fpgm" table from the current position 
 ///     in the supplied stream.
 /// </summary>
 /// <param name="reader"></param>
 protected internal override void Read(FontFileReader reader) {
     instructions = new byte[Entry.Length];
     reader.Stream.Read(instructions, 0, instructions.Length);
 }