maps for developers

The (former) official Mapbox blog. See mapbox.com/blog for current content.

Follow publication

Chinese, Japanese, and Korean glyph support in GL

Mapbox
maps for developers
2 min readAug 31, 2016

--

By Xiaowei Wang

We just rolled out improved support for Chinese, Japanese, and Korean (CJK) labels in Mapbox GL JS and GL Native. With our GL improvements that accommodate a larger glyph atlas and character range, non-Latin characters and place names are now rendered fully and crisply, powered by the speed of our vector tiles.

Our improvements also allow the same design control over text label widths and line breaking that we offer for Latin character sets, using line breaking and character rotation rules that cater to CJK text, as Chinese text does not use spaces for word wrapping and each character tends to have a word-like meaning. You can learn more about the intricacies of rendering glyphs on GL from Konstantin’s blog post about drawing text.

Check out the map below for the top 8 Chinese restaurants in San Francisco, showcasing our improved CJK support. Whether you’re an American tourist in Beijing, or a Chinese tourist in San Francisco, knowing where you are on the map is important, and GL JS labels are here to help. And whether you’re a tourist or a long-time resident of San Francisco, knowing the best Chinese restaurants in the Bay Area is a necessity.

We’re working on adding further support for multiple languages in GL JS and GL Native, including right to left language (bi-directional) labels, more precise vertical labels, and text that requires connections between glyphs. Both GL JS and GL Native are open-source, so we invite you to join the fun and contribute!

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Written by Mapbox

mapping tools for developers + precise location data to change the way we explore the world

No responses yet

Write a response