Fork me on GitHub
Fonts.css -- 跨平台中文字体解决方案
Note: 下滑线标注的为本地存在的字体,关于测试字体的方法,可以看我这个 Repo
  • Windows
  • Mac
  • Linux
  • 黑体

    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    .font-hei
    font-family: -apple-system, "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
  • Use apple system font (like San Francisco) by default, see also: https://github.com/zenozeng/fonts.css/issues/29
  • 某些 Linux 中 Helvetica 会自动 fallback 到 Nimbus Sans L (具体见 /etc/fonts/conf.d/30-metric-aliases.conf, debian jessie/sid )
  • 某些 Linux 中 Arial 会自动 fallback 到 Liberation Sans (具体见 /etc/fonts/conf.d/30-metric-aliases.conf, debian jessie/sid )
  • Windows
  • Mac
  • Linux
  • 楷体

    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    .font-kai
    font-family: Baskerville, Georgia, "Liberation Serif", "Kaiti SC", STKaiti, "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", KaiTi, KaiTi_GB2312, "TW\-Kai", serif;
  • Windows
  • Mac
  • Linux
  • 宋体

    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    .font-song
    font-family: Georgia, "Nimbus Roman No9 L", "Songti SC", STSong, "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, serif;
  • Windows
  • Mac
  • 仿宋

    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    • 我能吞下玻璃而不伤身体,The quick brown fox jumps over the lazy dog.
    .font-fang-song
    font-family: Baskerville, "Times New Roman", "Liberation Serif", STFangsong, FangSong, FangSong_GB2312, "CWTEX\-F", serif;
  • 某些 Linux 中 Times New Roman 会自动 fallback 到 Liberation Serif (具体见 /etc/fonts/conf.d/30-metric-aliases.conf, debian jessie/sid )
  • CWTEX仿宋体是繁体字型