-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cherry picks client-side rendering of CJK glyphs into release-agua #10817
Conversation
…rizer. - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist will result in CJK glyphs being rasterized on demand (#10522)
Instructions for enabling client-side rendering of CJK glyphs live in this header, and this class provides the rest of the values needed for instantiating the renderer on iOS and macOS.
Also removes related dead code in macos MGLMapView.mm
…code. Add local font family to default iosapp configuration.
Original GL JS name was meant to represent "font family to use for locally generating ideographs", but "ideographic font family" communicates a similar intent more concisely.
Seems straightforward enough. I'm testing the changes locally now. Note that we'll also want to merge in #10712 in order for this functionality to be enabled by default. |
The build failures are real:
|
After locally changing the mode.hpp include path, it's working locally for me in the ios app.
Agree we should port that change, but just to be clear -- it still shouldn't be enabled by default in the SDK, we just want the documentation and iosapp example to be clearer |
yes, this simply provides an example of a working configuration for our sample app. The SDK functionality remains disabled by default. |
@akitchen @ChrisLoer with the last change this branch is compiling. |
OK, #10712 has been merged into master. @fabian-guerra if you could add that commit I think we'll be good to go. |
Also updates the font to use for rendering CJK ideographs in our sample apps to `PingFang TC`, as simply specifying `PingFang` was always triggering iOS's font fallback behavior. [Fixes #10675]
@akitchen @ChrisLoer added #10712 into this PR |
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.
Awesome! Coveralls failure looks spurious to me.
Cherry picks the iOS/macOS code from #10522 into
release-agua