Skip to content

Enable local ideograph generation by default - #8008

Merged
asheemmamoowala merged 3 commits into
masterfrom
enable-localIdeographs
Mar 14, 2019
Merged

asheemmamoowala merged 3 commits into
masterfrom
enable-localIdeographs

Conversation

@asheemmamoowala

Copy link
Copy Markdown
Contributor

Enable local ideograph generation for glyphs in the 'CJK Unified Ideographs' and 'Hangul Syllables' ranges, using the system default sans-serif font.

I haven't been able to find a good way to add tests for this PR. The glyph rendering depends on a font being consistently available on the system. While a font can be installed on the docker containers for CI, it would also have to be made available for every developer running the test locally.

@mapbox/studio @mapbox/maps-design This change affects GL-JS by default, so for designers in Studio working on styling with custom fonts - it might be useful think of some messaging if the map is bringing in data in those glyph ranges, or the map is hovering over data in that range.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page
  • tagged @mapbox/studio and/or @mapbox/maps-design if this PR includes style spec changes

cc @ChrisLoer 👋 @chloekraw @lloydsheng @chriswu42

…graphs' and 'Hangul Syllables' ranges, using the system default sans-serif font.
@asheemmamoowala
asheemmamoowala requested a review from mourner March 9, 2019 00:53

@mourner mourner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 render tests timed out on CI, all related to CJK — let's investigate.


} else if (operation[0] === 'setStyle') {
map.setStyle(operation[1], { localIdeographFontFamily: false });
applyOperations(map, operations.slice(1), callback);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: let's add a comment here about why this is necessary.

@asheemmamoowala
asheemmamoowala force-pushed the enable-localIdeographs branch from 5fc3acb to 7dd11fa Compare March 14, 2019 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants