-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Introduce descender and ascender for font metrics + fix several text rendering issues
#8781
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c6558ce
Introduce descender+ascender, fix fonts dis-alignment
zmiao 800bff7
Fix failing tests
zmiao 85224db
Add glyph baseine checker
zmiao 4cc4ad6
Update render test
zmiao 13f1bdb
Update font baseline, make vertical mode applying with font baseline
zmiao ba51c90
Fix failing tests
zmiao 6d9700f
Update render test case source position
zmiao fa6eb09
Move ascender/descender to font level attributes, remove non-necessar…
zmiao 539560d
Add new glyph pbfs
zmiao 06f66a9
rename the inner callback parameter naming
zmiao 938e485
gl-native parity: Extend Ideographs rasterization range to include CJ…
zmiao 4fa30d0
Adjust text shaping
zmiao 1d93720
Fix shaping.test contents parsing
zmiao 6bfd132
Update render tests expectation
zmiao e5dc140
Fix vertical text rendering with 'text-offset' property
zmiao 4cb41f2
Fix text shaping for characters that have very big part below baselin…
zmiao 909259a
Update test expectations
zmiao 84bf3d5
Fix text rendering when both 'text-rotate' and 'text-offset' is set
zmiao 7690c5e
Update render tests
zmiao 57efbc4
Fix text rendering for line labels
zmiao c94c3a9
Enable ignored render tests regarding text rendering
zmiao e4900ca
Make ascender and descender optional
zmiao 61882cb
Update render tests
zmiao d64640a
Update shaping.js logic
zmiao a226cfc
Update render test expectations
zmiao 9c1e02a
Update shaping.test
zmiao cf8627c
Fix review comments
zmiao d02ec2d
fix typo
zmiao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.