css - 特定字体的行高
问题描述
在 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
规则中添加此属性无效。
我怎样才能做到这一点?
解决方案
推荐阅读
- ios - UIImage 和 CGImage 之间的转换是一项繁重的操作
- elasticsearch - 如何更改弹性搜索中仅一个字段的映射(文本到日期)?弹性搜索
- java - Android Fragments - 在片段中按下文本后“活动已被破坏”
- c++ - 如果 p 以根路径开头,为什么 std::filesystem::path::append 会替换当前路径
- javascript - 如何在 .EJS 模板中添加变量
- python - PySpark ClassNotFoundException:org.apache.spark.sql.DataFrame
- amazon-web-services - 通过 Userdata.txt 在 AWS Deep Learning AMI 上安装环境
- swift - 设置用户默认错误 - 尝试插入非属性列表对象
- excel - 将枢轴值移动到行
- unity3d - Unity3d与网格碰撞