mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Render CJK glyphs at client side [Android/iOS]

Open chriswu42 opened this issue 9 years ago • 4 comments

Summary

Loading CJK glyphs at the client side enables significantly faster map loads than downloading font packages per query. For example, we can reduce the overall map package from 15mb to 1.5mb using this technique - this is something that many developers/customers in Asia are looking to optimize when adding maps on their mobile apps / websites.

@ChrisLoer implemented CJK loading at client side on GL JS using TinySDF and we are looking to add support on native SDKs for Android and iOS.

Technical lifts

  1. gl-native “core” support for using TinySDF
  2. Android-specific font-loading and configuration
  3. iOS-specific font-loading and configuration.

Per voice with @ChrisLoer, he could tackle the first item, but we are looking for support from the Android and iOS teams for items 2 and 3, respectively. @zugaldia @boundsj

@ChrisLoer please add in any technical details I may be missing.

cc @mourner

chriswu42 avatar Oct 31 '17 22:10 chriswu42

cc: @lilykaiser

zugaldia avatar Nov 01 '17 16:11 zugaldia

Rendering system or local fonts for all scripts, not just CJK, is also tracked in #7862.

1ec5 avatar Nov 11 '17 00:11 1ec5

First part of this PR is in https://github.com/mapbox/mapbox-gl-native/pull/10522

kkaefer avatar Nov 24 '17 12:11 kkaefer

Since https://github.com/mapbox/mapbox-gl-native/pull/10522 has merged, I believe this can be closed. If I'm wrong, please reopen!

lilykaiser avatar Dec 13 '17 20:12 lilykaiser