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

Check results in Loader::glyph_for_char. #49

Merged
merged 4 commits into from May 24, 2019
Merged

Conversation

@RazrFalcon
Copy link
Collaborator

RazrFalcon commented May 15, 2019

Previously, glyph_for_char in CoreText and FreeType loaders were always
returned Some, instead of checking results.

Closes #38

Previously, `glyph_for_char` in CoreText and FreeType loaders were always
returned `Some`, instead of checking results.
@RazrFalcon
Copy link
Collaborator Author

RazrFalcon commented May 23, 2019

Looks like it doesn't work on macOS. CTFontGetGlyphsForCharacters returns false in most of the tests. Not sure why.

@RazrFalcon
Copy link
Collaborator Author

RazrFalcon commented May 24, 2019

As you can see, half of the tests are failed on macos.

RazrFalcon added 2 commits May 24, 2019
@RazrFalcon
Copy link
Collaborator Author

RazrFalcon commented May 24, 2019

I've fixed the current bug, sort of, but it looks like this is even more complex: https://github.com/google/skia/blob/503414581a9537b9d8c0b9346104798e2205627b/src/ports/SkFontHost_mac.cpp#L2360

@RazrFalcon RazrFalcon merged commit c928afd into servo:master May 24, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@RazrFalcon RazrFalcon deleted the RazrFalcon:fix-glyph-for-char branch May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant
You can’t perform that action at this time.