Skip to content

Font weight above 400 upto 800 has no difference on <Text>, just gets bold #19707

@ishaanbahal

Description

@ishaanbahal

Environment

Environment:
OS: macOS High Sierra 10.13.5
Node: 8.1.2
Yarn: 1.7.0
npm: 5.0.3
Watchman: Not Found
Xcode: Not Found
Android Studio: 3.1 AI-173.4720617

Packages: (wanted => installed)
react: ^16.0.0 => 16.2.0
react-native: 0.52.2 => 0.52.2

Android version: 8.0+

Description

Font weight for above 400, simply gets bold upto 800, there is no actual visible change from 500-800. Have tried on multiple android devices but none show it correctly. I am trying to set the value to 500 according to some PM design, but cannot seem to achieve it. Reading the docs for Text, it states Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen. , so I'm wondering how to achieve this, if the platform doesn't support it. On iOS this seems to work normally though. Source : https://facebook.github.io/react-native/docs/text.html

I think this issue might not be resolvable, can someone help me with a simple solution to tackle this?

Also, would like to help by solving this if someone can guide me where the code files for this exist, will try to create a PR if I could solve it.

Steps to Reproduce

Check out this expo to view the issue https://snack.expo.io/SkxJLo1bm
Simply applying fontWeight to Text component with values 300, 500 and 700 respectively, you'll see difference only with 300 - 500, but not from 500-700

Expected Behavior

The font weight at 500 is thinner than at 700

Actual Behavior

There is no difference in font weights 500 and 700

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions