You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9a8bc85
Browse filesBrowse the repository at this point in the historyBrowse files
React Native's Fabric text maps the CSS generic family `ui-monospace` to the
system monospaced font (SF Mono), but the legacy `RCTFont` this library uses
does not know it and falls back to the proportional system font. Code spans
and code blocks styled with `fontFamily: "ui-monospace"` rendered in SF Pro.
`ENRMFont` wraps `RCTFont updateFont:` and resolves `ui-monospace` to the
system font with the monospaced design, keeping weight, italics and scaling.
It also recognises a restyled run (bold or italic inside code) that passes
its current SF Mono font with no family, whose hidden family name RCTFont
would not resolve.
0 commit comments