Skip to content

Inform developer when a character is used that has no glyph in the available fonts #112

Closed

Description

@FlutterIssues

Issue by cpu-chromium
Tuesday Jul 21, 2015 at 20:03 GMT
Originally opened as https://github.com/flutter/engine/issues/189


https://github.com/domokit/sky_engine/blob/master/sky/sdk/example/mine_digger/lib/main.dart

On Linux it shows the correct character, a flag; not so in android

new StyledText(elements : [Game.textStyles[5], '\u2691'])

However, u2600 works in android

new StyledText(elements : [Game.textStyles[3], '\u2600'])

This can be as simple as the default font not having that codepoint. In this case it would be good to have that pointed at develop time.

Note the text styles defined as:

textStyles.add(new TextStyle(color: const Color(0xFF555555), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFF0094FF), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFF13A023), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFFDA1414), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFF1E2347), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFF7F0037), fontWeight: bold));
textStyles.add(new TextStyle(color: const Color(0xFFE93BE9), fontWeight: bold));

Activity

  1. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by cpu-chromium
    Tuesday Jul 21, 2015 at 20:14 GMT


    Chrome has the same behavior, showing 2600 but not 2691. Apparently stock android only has Roboto and Noto fonts. But an android app can embed ttf fonts, so this bug could mutate into providing font support outside these two fonts.

  2. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by Hixie
    Thursday Jul 23, 2015 at 01:00 GMT


    See #228 for general embedded font support.

  3. added
    c: new featureNothing broken; request for a new capability
    engineflutter/engine related. See also e: labels.
    on Dec 12, 2015
  4. added this to the milestone on Dec 12, 2015
  5. modified the milestones: , on May 30, 2017
  6. eseidelGoogle commented on May 30, 2017

    @eseidelGoogle
    Contributor

    What is our current behavior? Presumably we substitute a different font?

  7. tvolkert commented on Apr 5, 2018

    @tvolkert
    Contributor

    @jason-simmons does the switch to libtxt change the feasibility of this?

  8. dnfield commented on Jan 10, 2020

    @dnfield
    Contributor

    I'm going to close this. We definitely support using different fonts now, and I don't believe we plan to add support for replacing missing characters from a font (Chrome doesn't do it either).

  9. github-actions commented on Aug 24, 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.

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

    c: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions