Skip to content

Use font-provided metadata to determine glyph height #154

Open

Description

@kkaefer

We currently hardcode the glyph height so that we place the line centrally on the line. We should someone deduce the offset from the font metrics (or the shaped text bbox?)

Activity

  1. kkaefer commented on Feb 20, 2014

    @kkaefer
    MemberAuthor

    This needs to happen when shaping the text, and we need to include that information into the shaping result.

  2. self-assigned this
    on Apr 22, 2014
  3. mikemorris commented on Jun 17, 2014

    @mikemorris
    Contributor
  4. ansis commented on Jun 17, 2014

    @ansis
    Contributor

    I think so, but lets see what @kkaefer says. This would be a breaking change, right?

  5. mikemorris commented on Jun 17, 2014

    @mikemorris
    Contributor

    Yea, it would unfortunately be a breaking change @ansis.

  6. kkaefer commented on Jun 18, 2014

    @kkaefer
    MemberAuthor

    We could do this without a breaking change; just add the ascender property as well. When reading the metrics and we don't have an ascender, we use the current algorithm, if we do have the ascender, we use to to position the font.

  7. mikemorris commented on Jun 18, 2014

    @mikemorris
    Contributor

    Opened a pull request enabling this with a few questions at mapbox/node-fontnik#50 @kkaefer @ansis

  8. mikemorris commented on Jun 18, 2014

    @mikemorris
    Contributor
  9. added this to the milestone on Jun 24, 2014
  10. removed this from the milestone on Jun 15, 2015
  11. changed the title [-]Do not hardcode label glyph height[/-] [+]Use font-provided metadata to determine glyph height[/+] on Jul 28, 2016
  12. removed their assignment
    on Oct 19, 2016
  13. added a commit that references this issue on Jan 11, 2017
    0b10eba
  14. lbud commented on Feb 1, 2017

    @lbud
    Contributor

    Inadvertently closed due to some 🌳 history magic — reopening.

  15. reopened this on Feb 1, 2017
  16. lucaswoj commented on Feb 21, 2017

    @lucaswoj
    Contributor

    Closing as stale. I haven't seen this become a practical concern yet.

  17. kkaefer commented on Feb 21, 2017

    @kkaefer
    MemberAuthor

    Assuming that this will be subsumed by @ChrisLoer's push on fonts + harfbuzz.

  18. lucaswoj commented on Feb 21, 2017

    @lucaswoj
    Contributor

    Ah! Good point. We can keep this open to track this aspect of our text shaping work.

  19. self-assigned this
    on Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions