Skip to content

[Text feature] Underline Skip Descenders #28704

Open

Description

@lukef

It would be really great (read, somewhat necessary) to be able to:

  • adjust the underline thickness
  • toggle skipping descenders

I saw some issues around exposing Skia text metrics but I'm not sure if these were specifically covered off.

Either way, I'd really love to see them.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    engineflutter/engine related. See also e: labels.
    a: typographyText rendering, possibly libtxt
    on Mar 1, 2019
  2. added this to the milestone on Mar 1, 2019
  3. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor
  4. GaryQian commented on Mar 1, 2019

    @GaryQian
    Contributor

    LibTxt already supports a multiplier. We should be able to expose it to the framework fairly easily.

    @Hixie any thoughts on simply adding a property to TextStyle called decorationThickness or decorationWeight?

  5. lukef commented on Mar 1, 2019

    @lukef
    ContributorAuthor

    I'm not sure of how tightly libtxt is attached to Skia but i did see methods on the SKTextBlob for the skip ascenders feature but I need to dig into the engine to see how the text rendering is being implemented today. I'm assuming it is available more generically as it is present? I'm guessing libtxt doesn't implement it though.

  6. GaryQian commented on Mar 13, 2019

    @GaryQian
    Contributor

    Decoration thickness has landed.

    So LibTxt currently handles all of the decoration drawing itself. It would be a moderate/significant change to fully let skia handle this in order to implement skip descenders. I can do some exploration to see how much it would take.

  7. lukef commented on Mar 13, 2019

    @lukef
    ContributorAuthor

    @GaryQian - if you need a hand let me know. Would be great to have it.

  8. changed the title [-]Underline decoration feature suggestions[/-] [+][Text feature] Underline Skip Descenders[/+] on Apr 23, 2020
  9. added
    P2Important issues not at the top of the work list
    on May 29, 2020
  10. removed this from the milestone on Aug 17, 2020
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

    P2Important issues not at the top of the work lista: typographyText rendering, possibly libtxtengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions