q9REUgpVVCU77pWj
V2EX  ›  MacType

用了 Mactype 希望写网页的能把把字体优先为 sans-serif

  •  
  •   q9REUgpVVCU77pWj · May 6, 2018 · 5005 views
    This topic created in 2942 days ago, the information mentioned may be changed or developed.

    安了 Mactype 之后,宋体完全没法看…… 刚才打开飞猪,又被别扭到了,就看了眼 css

    font-family: tahoma,arial,"Hiragino Sans GB","\5b8b\4f53",sans-serif;
    

    倒数第二个估计就是宋体。

    如果用 stylish 做全局强制替换,又怕影响英文站的体验。

    大家说在 css 里把宋体换成雅黑,会不会好点?

    7 replies    2018-05-07 00:54:01 +08:00
    TimePPT
        1
    TimePPT  
    PRO
       May 6, 2018 via iPhone
    建议去查下字体样式回退规则,能帮你解惑。
    noe132
        2
    noe132  
       May 6, 2018
    1. 在 chrome, firefox, xxxx 字体设置里把 serif sans-serif mono 都换成指定的非衬线字体。
    2. 有些网站写死成宋体的,用 stylish css 的 font-face,将宋体,simsun,Tahoma,Arial 等字体映射到本地的非衬线字体文件
    @font-face {
    font-family: '宋体';
    src: local('Microsoft Yahei');
    }
    这样不影响 font-icon 的字体,也基本上所有的衬线都换成非衬线了。
    kerr92
        3
    kerr92  
       May 6, 2018
    1. 你需要一个分辨率更高的显示器
    2. Stylish 支持指定域名
    q9REUgpVVCU77pWj
        4
    q9REUgpVVCU77pWj  
    OP
       May 7, 2018
    @kerr92 指定域名并不能区分中英文站点,见一次加一次也太夸张了。
    q9REUgpVVCU77pWj
        5
    q9REUgpVVCU77pWj  
    OP
       May 7, 2018
    @noe132 src 这个我没用过唉 我去学习下
    q9REUgpVVCU77pWj
        6
    q9REUgpVVCU77pWj  
    OP
       May 7, 2018
    @noe132 学到了,可行!
    想起来以前用过英文的自定义字体,用过 src:url()
    q9REUgpVVCU77pWj
        7
    q9REUgpVVCU77pWj  
    OP
       May 7, 2018
    直接写了个 Stylish 共享一下 t\.cn\/RuDev1n
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1156 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 18:13 · PVG 02:13 · LAX 11:13 · JFK 14:13
    ♥ Do have faith in what you're doing.