Repository navigation
fix(ios): inherit text fonts for inline attachments - #58967
meta-codesync[bot] merged 3 commits into
Conversation
|
Hi @cipolleschi, could you please review this iOS inline View alignment fix when you have a chance? Thank you! |
|
Hi @cortinico, could you please review this iOS inline View alignment fix when you have a chance? Thank you! |
cortinico
left a comment
There was a problem hiding this comment.
Can we add this reproduction to RNTester please?
|
@mym0404 also pls fix merge conflicts |
|
@cortinico conflicts have been resolved. |
|
@cortinico has imported this pull request. If you are a Meta employee, you can view this in D131806404. |
|
@mym0404 can you please rebase and resolve the conflicts so we can merge this? |
d969690 to
86a3f09
Compare
|
@cortinico Rebased onto the latest |
yup I couldn't re-sync till you rebased, thanks for doing it. |
|
This pull request was successfully merged by @mym0404 in 562e397 When will my fix make it into a release? | How to file a pick request? |
Summary:
iOS Fabric inline
<View>attachments omit the enclosing<Text>font. Apply that font to the attachment. The RNTester example covers font inheritance, line heights, wrapping, and Dynamic Type.Rebased onto
mainat2fed45cd. Baseline positioning uses main's TextKit implementation from #59921; the superseded manual baseline-offset adjustment has been removed.The reproduction is included in RNTester under Text > Inline view baseline alignment, with ten samples, numeric alignment differences, and Dynamic Type. Direct link:
rntester://example/TextExample/inline-view-baseline.Earlier source-build comparison:
main@502f112fandPR@d969690b. The screenshots and measurements below are from those revisions.RNTester source-build results, commands, and measurements
Changelog:
[IOS] [FIXED] - Preserve inherited text fonts on inline View attachments.
Test Plan:
RCTTextLayoutManager.mmmatches the new base exactly.--max-warnings 0), the full Flow check (--max-workers 6), clang-format, andgit diff --check origin/main: passed.Native source builds were not rerun for this rebase.