mapbox / node-fontnik

Fonts ⇢ protobuf-encoded SDF glyphs
BSD 3-Clause "New" or "Revised" License
222 stars 65 forks source link

Subscript numbers not included #173

Closed halset closed 4 years ago

halset commented 4 years ago

I want to use subscript numbers with a mapbox map. Like "₄" (subscript four). It looks like node-fontnik does not include those even though the font include them.

Here are some information on subscript four: https://www.fileformat.info/info/unicode/char/2084/index.htm

Open Sans seem to have subscript four in some styles, but not all. https://fonts.google.com/specimen/Open+Sans?preview.text=8₄&preview.text_type=custom

I generate the glyphs with: build-glyphs OpenSans-Bold.ttf ./glyphs

And then inspected them with: inspect glyphs/8192-8447.pbf --html > 8192-8447.pbf.html

The resulting html page has no information on the subscript numbers. The subscript numbers are not shown in mapbox-gl-js either. Suberscript numbers work fine.

halset commented 4 years ago

It seems to work in TinySDF

Skjermbilde 2020-11-10 kl  10 44 23
halset commented 4 years ago

Never mind, looks like this works fine when using another font. Sorry for the noise.