全 H5 页中文字体改用阿里普惠体真字模,移除 text-shadow 伪粗体兜底
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* 阿里巴巴普惠体 3.0(GB2312 子集 + 拉丁 + 标点,5 档)—— H5 全局中文字重对齐原型。
|
||||
* 与原生 res/font/puhuiti_* 同一套字体;安卓系统 CJK 只有 Regular/Bold 两档,原型的
|
||||
* 600/700/800/900 在系统字体下会被压成偏细 → 之前靠 text-shadow 伪粗(易过粗)。
|
||||
* 内嵌真字体后 font-weight 由字模原生渲染,与原型一致,伪粗体脚本已移除。
|
||||
* woff2 同源加载,浏览器按页面实际用到的字重懒下载并缓存(跨页只下一次)。
|
||||
* 档位对齐原型:400→Regular / 600→SemiBold / 700→Bold / 800→ExtraBold / 900→Heavy。
|
||||
*/
|
||||
@font-face { font-family: 'PuHuiTi'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/puhuiti_regular.woff2') format('woff2'); }
|
||||
@font-face { font-family: 'PuHuiTi'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/puhuiti_semibold.woff2') format('woff2'); }
|
||||
@font-face { font-family: 'PuHuiTi'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/puhuiti_bold.woff2') format('woff2'); }
|
||||
@font-face { font-family: 'PuHuiTi'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/puhuiti_extrabold.woff2') format('woff2'); }
|
||||
@font-face { font-family: 'PuHuiTi'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/puhuiti_heavy.woff2') format('woff2'); }
|
||||
Reference in New Issue
Block a user