PdfSharp.Fonts.OpenType.GlyphDataTable.GetGlyphData C# (CSharp) Method

GetGlyphData() public method

Gets the data of the specified glyph.
public GetGlyphData ( int glyph ) : byte[]
glyph int
return byte[]
    public byte[] GetGlyphData(int glyph)
    {
      IndexToLocationTable loca = this.fontData.loca;
      int start = GetOffset(glyph);
      int next = GetOffset(glyph + 1);
      int count = next - start;
      byte[] bytes = new byte[count];
      Buffer.BlockCopy(this.fontData.Data, start, bytes, 0, count);
      return bytes;
    }