我已经使用CSS规则@font-face
为我的字体Rajdhani.作品完美的桌面上,但不是在Android和iOS设备:
@font-face {
font-family: "Rajdhani";
src: url("/fonts/rajdhani-light.ttf") format("truetype"),
}
@font-face {
font-family: "Rajdhani";
src: url("/fonts/rajdhani-medium.ttf") format("truetype"),
}
@font-face {
font-family: "Rajdhani";
src: url("/fonts/rajdhani-regular.ttf") format("truetype"),
}
@font-face {
font-family: "Rajdhani";
src: url("/fonts/rajdhani-semibold.ttf") format("truetype"),
}
@font-face {
font-family: "Rajdhani";
src: url("/fonts/rajdhani-bold.ttf") format("truetype"),
}
字符串
1条答案
按热度按时间wvmv3b1j1#
你应该添加其他格式的文件,例如,转到online web font generator并转换字体,然后添加所有类型,因为这与操作系统有关
字符串