首页 > 解决方案 > 特定字体的行高

问题描述

在 css 中,我为特定范围的字符定义了自定义字体:

@font-face {
    font-family: Sahel;
    src: url(../font/Sahel-FD.ttf);
    unicode-range: U+0600-06FF;
}

@font-face {
    font-family: Sahel;
    src: url(../font/Sahel-FD-Bold.ttf);
    unicode-range: U+0600-06FF;
    font-weight: bold;
}

我只想更改line-height此字体,但在@font-face规则中添加此属性无效。

我怎样才能做到这一点?

标签: cssfont-facevertical-alignmentunicode-range

解决方案


推荐阅读