Skip to content

Visible control characters in glyph PBFs #1258

Open

Description

@1ec5

Control characters should always be invisible and take up no space, but glyph PBFs for the OpenHistorical fontstack depict control characters as control symbols. This causes unsightly artifacts when Diplomat inserts bidirectional control characters to avoid unexpected layout in dual-language labels (e.g., Latin followed by Arabic): OpenHistoricalMap/openhistoricalmap-embed#39. As of maplibre/maplibre-gl-js#6907, MapLibre knows to collapse control characters, but only when rendering them locally via font substitution. The control character glyphs in the glyph PBFs forces MapLibre to render them. We should remove these glyphs from the glyph PBFs. Ultimately, we should move off of glyph PBFs altogether in favor of client-side font rendering and Web fonts: #870.

OpenHistorical Italic Americana-Italic
PSI and PDI surrounding ABC Nothing surrounding ABC

https://github.com/OpenHistoricalMap/map-styles/blob/1e5f5c3a4b4331c82889655793bc05cec3effae9/fonts/OpenHistorical%20Italic/8192-8447.pbf

Metadata

Metadata

Assignees

Labels

internationalizationstylesheets

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions