mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-03 02:04:31 +10:00
* fix(pdf): resolve bold text weight from the family's bold face Bold text (<strong>, rich-text bold, template bold styles) previously rendered at the last stored body weight, which is ambiguous: families are commonly stored as ["400","600"] (the typography picker's default pairing), so bold rendered at SemiBold — nearly indistinguishable from Regular for faces like Open Sans (#3310). Add resolveBoldFontWeight() to the fonts package: keep a deliberate stored bold-class choice (>= 700), else prefer the family's true Bold face ("700"), else the heaviest >= 600 face; return null so callers keep their existing fallback when the family has no bold-class face. Wire it through use-register-fonts, the shared base-template-styles builder, base-styles and the Scizor template. Default body IBM Plex Serif ["400","500"] now renders bold at 700 (base-reset-fidelity expectation updated accordingly). Fixes #3310 * fix(pdf): register bold fallback faces for CJK glyph substitution When resolveBoldFontWeight maps stored weights like ["400","600"] to the family's 700 face, register that weight on each PDF fallback font too so glyph-level substitution keeps bold glyphs instead of snapping to 600. Also reorder @reactive-resume/fonts imports per Biome convention. --------- Co-authored-by: Amruth Pillai <im.amruth@gmail.com>