Skip to content
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

Enable local ideograph generation by default #8008

Merged
merged 3 commits into from
Mar 14, 2019

Conversation

asheemmamoowala
Copy link
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.
Copy link
Member

@mourner mourner left a comment

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
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.

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