add charset interface, create class to store cff font data. add the command logic for type 2 charstrings #6

This commit is contained in:
Eliot Jones
2018-11-17 14:59:58 +00:00
parent 7358650b0a
commit 4d18a2478d
21 changed files with 988 additions and 161 deletions

View File

@@ -4,7 +4,7 @@ namespace UglyToad.PdfPig.Fonts.CompactFontFormat
{
internal class CompactFontFormatIndexReader
{
public byte[][] ReadDictionaryData(CompactFontFormatData data)
public CompactFontFormatIndex ReadDictionaryData(CompactFontFormatData data)
{
var index = ReadIndex(data);
@@ -24,7 +24,7 @@ namespace UglyToad.PdfPig.Fonts.CompactFontFormat
results[i] = data.ReadBytes(length);
}
return results;
return new CompactFontFormatIndex(results);
}
public int[] ReadIndex(CompactFontFormatData data)