/bin/log

Log my thoughts

Home About GitHub

15 Sep 2013
font-family priorities

Rule:

  1. English name first
  2. Apple fist
  3. Add fall back
  4. add font alias
  5. back compatible
font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;

Font fall back chain:

Non-chinese: Helvetica -> Tahoma -> Arial

Chinese: 华文细黑 -> 微软雅黑 -> 宋体


Check fonts in linux

refresh font

fc-cache -vf

list all font

fc-list


References:

css font-family guide for chinese: http://ruby-china.org/topics/14005


Carpe diem,
JZR at 01:51

Home About GitHub