Skip to content

fix(馃摑): unify matchFont and Paragraph font style types - #3948

Merged
wcandillon merged 2 commits into
mainfrom
fix/3491-unify-font-types
Jul 16, 2026
Merged

fix(馃摑): unify matchFont and Paragraph font style types#3948
wcandillon merged 2 commits into
mainfrom
fix/3491-unify-font-types

Conversation

@wcandillon

Copy link
Copy Markdown
Contributor

matchFont now also accepts the FontWeight and FontSlant enums used by the Paragraph API for its fontWeight and fontStyle attributes, so the same style values can be shared between both APIs without manual conversion. The previously internal font style types are now exported as RNFontStyle, RNFontWeight, and RNFontSlant so users can type their own helpers.

Fixes #3491

wcandillon and others added 2 commits July 16, 2026 08:37
matchFont now also accepts the FontWeight and FontSlant enums used by
the Paragraph API for its fontWeight and fontStyle attributes, so the
same style values can be shared between both APIs without manual
conversion. The previously internal font style types are now exported
as RNFontStyle, RNFontWeight, and RNFontSlant so users can type their
own helpers.

Fixes #3491

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@wcandillon
wcandillon merged commit 75ac5a2 into main Jul 16, 2026
30 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

馃帀 This PR is included in version 2.9.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

@wcandillon
wcandillon deleted the fix/3491-unify-font-types branch July 16, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Merge Font Types

1 participant