我正在尝试在我的网站上安装阿拉伯语字体。以下是我已经采取的步骤,但字体没有改变。
- 我上传了字体文件(转换为 webfonts 并上传到网站上)
- 安装字体:
@font-face {
font-family: 'jf_flatregular';
src:url('fonts/jf-flat-regular-webfont.ttf') format('ttf'),
url('fonts/jf-flat-regular-webfont.woff2') format('woff2'),
url('fonts/jf-flat-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
html[lang="ar"] body {
font-family: 'jf_flatregular';
}
网站的字体更改为安全字体,即 Open Sans,但我上传的字体没有加载到网站上。
注意事项: 1. 使用 Jupiter 主题 2. 使用 Polylang 插件
任何帮助表示赞赏。谢谢