font-synthesis 用来对字体进行加粗或者让字体变成斜体。
font-synthesis: none; font-synthesis: weight; font-synthesis: style; font-synthesis: weight style;
值 | 描述 |
---|---|
none | 定义正常字体 |
weight | 定义粗体 |
style | 定义斜体 |
HTML
<div class="syn">Don't try and synthesize me!</div>
HTML
.syn {font-synthesis: none;}
执行结果