Skip to content

Emojis wont render when using non-normal font weights #11108

Closed

Description

@lukef

If you have a Text widget and you're using a TextStyle which specifies a fontWeight that is != 400 then any emojis in the text string will not be rendered.

Activity

  1. eseidelGoogle commented on Jul 11, 2017

    @eseidelGoogle
    Contributor

    Ouch. @cbracken or @chinmaygarde may know (both worked on our emoji support iirc). Do you know if this is specific to iOS or Android?

  2. jason-simmons commented on Jul 11, 2017

    @jason-simmons
    Member

    Reproduced this on Android. Looking into it now.

  3. jason-simmons commented on Jul 14, 2017

    @jason-simmons
    Member

    This is happening at the Skia level.

    I traced it to SkScalerContext::getMetrics yielding an error for the emoji glyph when using a bold weight. With the weight applied, getMetrics flows through the fGenerateImageFromPath -> devPath.getBounds().roundOut() path, and getBounds returns an empty rectangle.

    We'll need support from the Skia team. Should we be going down this path when rendering a color bitmap glyph?

  4. bungeman commented on Jul 17, 2017

    @bungeman
    Contributor
  5. eseidelGoogle commented on Jul 18, 2017

    @eseidelGoogle
    Contributor

    Confirming: @collinjackson @lukef is this blocking development? I presume the workaround is to just not use a bold font?

  6. lukef commented on Jul 18, 2017

    @lukef
    ContributorAuthor

    Not blocking

  7. added this to the milestone on Oct 25, 2017
  8. najeira commented on Nov 21, 2017

    @najeira
    Contributor

    Emojis with FontWeight.w500 works in my app. but with FontWeight.w600 does not work.

  9. chinmaygarde commented on Dec 4, 2017

    @chinmaygarde
    Contributor

    Update: This has been fixed in Skia. I need to confirm that it has been rolled into the engine and fixed.

  10. najeira commented on Dec 8, 2017

    @najeira
    Contributor

    In alpha 0.0.19, I confirmed that emojis are displayed with FontWeight.bold in both Android emu and iOS sim.

  11. cbracken commented on Dec 9, 2017

    @cbracken
    Member

    @najeira thanks for confirming! Please re-open if you see issues again.

  12. owenmech commented on Jul 27, 2018

    @owenmech

    I am experiencing this issue. They will not display above FontWeight.w500

  13. zoechi commented on Jul 27, 2018

    @zoechi
    Contributor

    @owenmech this issue is closed since more than 6 months.
    Can you please create a new issue with the issue template filled out and perhaps a link to this issue?

  14. github-actions commented on Aug 16, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Aug 16, 2021
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions