Files
shaguabijia-app-server/h5/shared/fonts.css
T
2026-06-30 20:02:48 +08:00

14 lines
1.4 KiB
CSS

/*
* 阿里巴巴普惠体 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'); }