mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.25k stars 2.23k forks source link

Khmer and Burmese languages not rendered correctly #8015

Open Argh4k opened 5 years ago

Argh4k commented 5 years ago

mapbox-gl-js version: 0.53.1

browser: Firefox (Ubuntu 16.04)

Steps to Trigger Behavior

  1. Download zip containing examples together with pbf encoded fonts fontTest.zip
  2. Host locally folder with fonts from zip on port 8080
  3. Open provided html pages

Expected Behavior

Label for Phnom Penh (Cambodia capital) is rendered correctly using proper fonts. image (2)

Label for Naypyidaw (Myanmar capital) is rendered correctly using proper fonts. image (3)

Actual Behavior

Label for Phnom Penh is rendered incorrectly using google Noto Sans Khmer font (https://www.google.com/get/noto/#sans-khmr) on the right, and Khmer font (https://fonts.google.com/specimen/Khmer) on the left. image

Label for Naypyidaw is rendered incorrectly using google Noto Sans Myanmar font (https://www.google.com/get/noto/#sans-mymr) on the left and Padauk font (https://fonts.google.com/?subset=myanmar) on the right. image

mapcarta commented 5 years ago

We're also experiencing problems with both Khmer and Burmese, but in our case text is not appearing at all on all browsers. We're using the latest version of Mapbox GL JS, 1.3.2.

For examples, see the Mapcarta pages for the Siam Reap and Mandalay Airports which have missing labels:

kkaefer commented 5 years ago

See https://github.com/mapbox/mapbox-gl-js/issues/4009 and https://github.com/mapbox/mapbox-gl-native/issues/7774 for more background.