Skip to content

fix: consider extralight fonts in RCTGetFontWeight - #57775

Draft
vonovak wants to merge 1 commit into
react:mainfrom
vonovak:fix/ExtraLightFonts
Draft

fix: consider extralight fonts in RCTGetFontWeight#57775
vonovak wants to merge 1 commit into
react:mainfrom
vonovak:fix/ExtraLightFonts

Conversation

@vonovak

@vonovak vonovak commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary:

RCTGetFontWeight, as the name suggests, gets a UIFontWeight given the font names. Some font names are called extralight which is the same weight as the already-covered ultralight -> UIFontWeightUltraLight case.

However, they'd incorrectly be classified as UIFontWeightLight. This PR fixes that. Note that the extrabold case was already covered.

Changelog:

[iOS] [FIXED] - correctly classify extralight fonts as UIFontWeightUltraLight in RCTGetFontWeight

Test Plan:

  • green CI

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant