-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upright CJK characters in vertically-oriented labels #7114
The head ref may contain hidden characters: "1ec5-\u7E31\u6392-7114"
Conversation
@1ec5, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfirebaugh, @ChrisLoer and @kkaefer to be potential reviewers. |
@1ec5 what needs to happen until this can be merged? |
|
CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement. Fixes #1682.
ec88534
to
6111c7e
Compare
@1ec5 I rebased this and debugged the test failures -- can you take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jfirebaugh! Now it all makes sense. 😊 These changes also look a lot cleaner now that the WritingDirection
enumeration has been removed on master.
|
||
// https://github.com/mapbox/mapbox-gl/issues/29 | ||
|
||
// if (isInMeroiticHieroglyphs(chr)) return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapbox/mapbox-gl-js#3608 (comment) requested that I put the list of vertical supplementary blocks in mapbox/DEPRECATED-mapbox-gl#29, now mapbox/mapbox-gl-js#4001, instead of leaving them here as commented out lines.
CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement.
This is a port of mapbox/mapbox-gl-js#3438 that fixes #1682. I did most of the porting before #6984 landed, so I have yet to reconcile the
WritingMode
enumeration with the newWritingDirection
enumeration. Also, vertical punctuation is correctly laid out but doesn’t appear for some reason. I suspect the issue has to do with the glyph range not being loaded, but I need to do further investigation./cc @kkaefer @lucaswoj @ChrisLoer @LornTao