vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
2.03k stars 301 forks source link

No support for unicode in text labels #56

Closed snshn closed 3 years ago

snshn commented 3 years ago

Describe the bug Unicode within label text gets rendered as ???.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://jsfiddle.net/k37vqzab/

Expected behavior Expected unicode symbols to be properly rendered.

Screenshots Not needed.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

snshn commented 3 years ago

Potentially the font that's baked into the component is limited, hence using labelTypeFace and http://gero3.github.io/facetype.js/ as described in README.md is the way to go. Perhaps specifying the range of supported characters next to labelTypeFace could serve as a heads up that unicode symbols are not being rendered by default.

vasturiano commented 3 years ago

@snshn yes, the font type should be the reason for that. See another example of this at: https://github.com/vasturiano/react-globe.gl/issues/50