#6 more work on type 2 char string, stuck on a bug

This commit is contained in:
Eliot Jones
2018-11-19 20:41:52 +00:00
parent 2c159f71e8
commit 6517a6201a
5 changed files with 66 additions and 12 deletions

View File

@@ -65,6 +65,32 @@
Assert.NotNull(box);
}
[Fact]
public void CanInterpretATildeSmallSymbol()
{
var fileBytes = GetFileBytes("MinionPro.bin");
var font = parser.Parse(new CompactFontFormatData(fileBytes));
// Calls a global subroutine which adds to the hints
var box = font.GetCharacterBoundingBox("Atildesmall");
Assert.NotNull(box);
}
[Fact]
public void CanInterpretUniF687Symbol()
{
var fileBytes = GetFileBytes("MinionPro.bin");
var font = parser.Parse(new CompactFontFormatData(fileBytes));
// Calls hugely nested subroutines
var box = font.GetCharacterBoundingBox("uniF687");
Assert.NotNull(box);
}
[Fact]
public void CanInterpretAllGlyphs()
{