public void GetCharacter_missing() { Format0SubTable format = new Format0SubTable(0, PlatformIDs.Windows, 2, new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }); ushort id = format.GetGlyphId(99); Assert.Equal(0, id); }
public void GetCharacter() { var format = new Format0SubTable(0, PlatformIDs.Windows, 2, new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }); ushort id = format.GetGlyphId(4); Assert.Equal(5, id); }