Raleway字体不会显示在手机视图中



我刚刚部署了我使用react.js构建的网站,整个网站都使用Raleway字体,但当我用safari浏览器用iphone打开它时,它会显示另一种字体,我该如何解决这个问题?

您在网站中导入字体吗?你可以在index.html中添加这些行,这样任何没有安装Ralway(包括手机应用程序(的人都可以显示它。

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway&display=swap" rel="stylesheet">

如果您需要特定的样式,可以选择它们并在此处生成导入行:https://fonts.google.com/specimen/Raleway

最新更新