Skip to content

Support for Displaying Japanese Long Vowel Mark (ー) in Vertical Layout #5259

Open
@chizutodesign

Description

@chizutodesign

User Story

  • As a developer creating maps for Japanese users, I want the long vowel mark (ー) 'Chōonpu' and other symbols to use vertical-specific glyphs in vertical text layout, so that map labels adhere to standard Japanese typography and provide a better user experience.

Rationale

Why is this feature needed?

  • In Japanese vertical text layout, certain symbols, such as the long vowel mark (ー), require vertical-specific glyphs. These glyphs are not simply rotated 90 degrees but are designed with different proportions and shapes to fit the vertical orientation aesthetically. Without this support, the text can look incorrect or unpolished to Japanese users.

What are some example use cases?

  • Displaying vertical labels for landmarks like 東京タワー (Tokyo Tower) where the long vowel mark is essential for proper representation.
    Image
  • Ensuring that Japanese text on maps adheres to proper typographic conventions for vertical text, enhancing both visual quality and readability.
  • Supporting maps that require vertical text labels, such as historical maps or maps with limited space.

Can it be done today? Is there a workaround?

  • Currently, there is no built-in support for rotating symbols or applying vertical-specific glyphs in MapLibre GL JS. Developers may use pre-rendered images or custom CSS, but these workarounds are inefficient and not scalable.

Impact

  • Adding support for vertical-specific glyphs (e.g., via the OpenType vert feature) would enable accurate and professional display of Japanese vertical text, significantly improving the user experience for maps targeting Japanese-speaking audiences.
  • Developers would save time and effort currently spent on creating workarounds, enabling them to focus on other features.
  • While this feature may not impact all users, it is critical for projects that prioritize Japanese text and design accuracy.

Additional Context

Japanese fonts typically include vertical-specific glyphs to handle vertical typesetting properly. For example:

  • The long vowel mark (ー) is not simply rotated 90 degrees; its shape and proportions are adjusted to fit the vertical layout.
  • OpenType fonts support a feature called vert, which automatically switches to these vertical-specific glyphs when rendering vertical text.
    Supporting the vert feature in MapLibre GL JS would enable proper vertical text rendering without requiring manual adjustments or workarounds. This improvement aligns with the goal of providing high-quality map rendering for diverse languages and regions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions