【发布时间】:2021-06-05 16:29:03
【问题描述】:
在我的网络应用程序中,我想使用 Futura Bold 字体。我购买了整个家庭并将 Futura Bold.ttf 文件上传到 Firebase 存储。我复制了它与访问令牌的链接,并在样式标签中添加了以下内容:
@font-face {
font-family: Futura;
src: url(https://firebasestorage.googleapis.com/v0/b/my-project-name.appspot.com/o/Futura%20Bold%20font.ttf?alt=media&token=mytokenhere) format("truetype");
font-weight: bold;
}
我该如何解决这个问题?将字体存储在 Firebase 存储中是一种不好的方式吗?
【问题讨论】:
标签: html css firebase fonts firebase-storage