Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is wrong with SegmentMappingToDeltaValuesTable.GetGlyphIndex #2

Closed
harris2012 opened this issue Sep 6, 2022 · 0 comments
Closed

Comments

@harris2012
Copy link
Contributor

Something is wrong with SegmentMappingToDeltaValuesTable.GetGlyphIndex

see
https://docs.microsoft.com/zh-cn/typography/opentype/spec/cmap#format-4-segment-mapping-to-delta-values

Failed UT

        [Fact]
        public void TestGetGlyphIndex()
        {
            var font = TrueTypeFont.FromFile(@"C:\Windows\Fonts\micross.ttf");

            var glyphIndex = GlyphHelper.GetGlyphIndex((char)894, font);

            Assert.True(glyphIndex  == 30);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant