Skip to content

fix: consider extralight fonts in RCTGetFontWeight - #57775

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

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
@vonovak
vonovak marked this pull request as ready for review July 31, 2026 20:44
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 31, 2026
@meta-codesync

meta-codesync Bot commented Aug 1, 2026

Copy link
Copy Markdown

@fabriziocucci has imported this pull request. If you are a Meta employee, you can view this in D114475029.

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 Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant