Skip to content

Letter spacing in EM units #2528

Closed

Description

@hamorphis

The current implementation is entirely incorrect and the same letter spacing value produces totally different results on iOS and Android. That is because Android expects the value to be in EM units and we currently supply it as pixels. Thus the huge letter spacing stretch on Android. The attributed string in iOS expects the kerning to be supplied in points, which is also directly related to the font size.

Currently we cannot support letter spacing in pixels. That is until we find a way to find out how wide is the capital letter M in pixels, so we can do the math. We can only support letter spacing in EM units. Negative values tighten text. So a value of 0 is just normal text. A value of 1 will space letters one letter (capital M) apart and so on. A value of -1 should render all letters on the same spot.

Activity

  1. added this to the 2.2.0 milestone on Jul 29, 2016
  2. self-assigned this
    on Jul 29, 2016
  3. added a commit that references this issue on Jul 29, 2016
    d73acb5
  4. lock commented on Aug 29, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked and limited conversation to collaborators on Aug 29, 2019
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions