public void GetCharacter_missing() { var format = new Format0SubTable(0, PlatformIDs.Windows, 2, new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }); bool found = format.TryGetGlyphId(new CodePoint(99), out ushort id); Assert.False(found); 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 }); var found = format.TryGetGlyphId(4, out ushort id); Assert.True(found); Assert.Equal(5, id); }