Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Vertical CJK labels #1682

Closed
Closed

Description

@1ec5

CJK labels running along north-south roads (or roads that go from top to bottom due to map rotation) should orient glyphs vertically so that one can read the labels without tilting one’s head. Since the map can be rotated arbitrarily, it’s easy to wind up in a situation where all the road labels are vertical. CJK makes it possible to maintain legibility in such configurations.

/cc @ansis @nickidlugash @peterqliu @mayagao @friedbunny @mikemorris

Activity

  1. friedbunny commented on Jun 3, 2015

    @friedbunny
    Contributor

    An example from Yahoo JP, near Tokyo Station. Notice that even roman characters can be drawn vertically.

    screen shot 2015-06-03 at 1 23 11 pm

    http://yahoo.jp/2RqUBc

  2. nickidlugash commented on May 18, 2016

    @nickidlugash
    Contributor

    @mikemorris is planning to add vertical advance information here to allow this.

  3. mikemorris commented on May 18, 2016

    @mikemorris
    Contributor

    Note that only a few font formats provide vertical metrics. You can test whether a given face object contains them by using the macro FT_HAS_VERTICAL, which returns true if appropriate.

    https://www.freetype.org/freetype2/docs/tutorial/step2.html is interesting and has more details on vertical glyph metrics and what we would need to include in the glyph spec to support vertical layout

  4. 1ec5 commented on Nov 10, 2016

    @1ec5
    ContributorAuthor

    An implementation is nearly ready to port in mapbox/mapbox-gl-js#3438.

  5. added
    Core
    on Nov 10, 2016
  6. added a commit that references this issue on Nov 12, 2016
  7. added
    GL JS parity
    on Nov 12, 2016
  8. added a commit that references this issue on Nov 18, 2016
    7e1e6a4
  9. added a commit that references this issue on Feb 10, 2017
    6111c7e
  10. added a commit that references this issue on Feb 11, 2017
    e6c15d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreGL JS parityfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions