Commit 07da2ff
feat(ios): support condensed system font on fabric (#52259)
Summary:
This PR adds support for using the condensed system font on iOS when passing "SystemCondensed" as fontFamily. This behavior existed in the old architecture but was never ported to the new one, see [RCTFont.mm](https://github.com/facebook/react-native/blob/main/packages/react-native/React/Views/RCTFont.mm#L434) as reference. Fixes #52258.
## Changelog:
[IOS] [ADDED] - Add support for condensed system font when using the new react native architecture.
Pull Request resolved: #52259
Test Plan:
Before:
<img width="275" src="https://github.com/user-attachments/assets/8744a5ae-252c-46db-b5f9-b803f3e1c671" />
After:
<img width="275" src="https://github.com/user-attachments/assets/69ec27a3-5c9a-46e3-a80a-0e02b76d8813" />
Reviewed By: cortinico
Differential Revision: D82208140
Pulled By: javache
fbshipit-source-id: b23a97c94bf45144c3f0860c30e35cae88c7dc2f1 parent 90ac3ac commit 07da2ff
2 files changed
Lines changed: 30 additions & 36 deletions
File tree
- packages
- react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager
- rn-tester/js/examples/Text
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
270 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
274 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
275 | 287 | | |
276 | 288 | | |
277 | 289 | | |
| |||
333 | 345 | | |
334 | 346 | | |
335 | 347 | | |
336 | | - | |
| 348 | + | |
337 | 349 | | |
338 | 350 | | |
339 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
580 | 581 | | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
589 | 585 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 586 | + | |
| 587 | + | |
597 | 588 | | |
598 | | - | |
599 | | - | |
600 | | - | |
| 589 | + | |
| 590 | + | |
601 | 591 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 592 | + | |
| 593 | + | |
609 | 594 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 595 | + | |
| 596 | + | |
616 | 597 | | |
617 | 598 | | |
618 | 599 | | |
| |||
767 | 748 | | |
768 | 749 | | |
769 | 750 | | |
| 751 | + | |
770 | 752 | | |
771 | 753 | | |
772 | 754 | | |
| |||
0 commit comments