#6 improve organisation of cff related classes. add failing font test for cff font file. fix bugs with cff parsing

This commit is contained in:
Eliot Jones
2018-11-18 13:53:43 +00:00
parent 8cd2faeb8b
commit 530410c996
19 changed files with 477 additions and 133 deletions

View File

@@ -21,6 +21,11 @@ namespace UglyToad.PdfPig.Fonts.CompactFontFormat
throw new InvalidOperationException($"Negative object length {length} at {i}. Current position: {data.Position}.");
}
if (length > data.Length)
{
throw new InvalidOperationException($"Attempted to read data of length {length} in data array of length {data.Length}.");
}
results[i] = data.ReadBytes(length);
}