字体源代码 Sofia Sans 凝聚
CSS和网络字体文件可以方便地自行托管“Sofia Sans Condensed”可变字体。 请访问主机 字体来源网站 查看此软件包的更详细信息.
快速安装
Fontsource提供了多种方法来导入CSS,包括使用像Vite这样的捆绑机或使用SASS. 您可以找到完整的文档 这里。 。 。 .
npm install @fontsource-variable/sofia-sans-condensed
在您的应用程序条目文件或站点组件中, 导入它 .
import "@fontsource-variable/sofia-sans-condensed"; // Defaults to wght axis
import "@fontsource-variable/sofia-sans-condensed/wght.css"; // Specify axis
import "@fontsource-variable/sofia-sans-condensed/wght-italic.css"; // Specify axis and style
支持的变量 :
- 重量 :
[100,200,300,400,500,600,700,800,900] - 样式 :
[italic,normal] - 子集 :
[cyrillic,cyrillic-ext,greek,latin,latin-ext] - 轴:
[wght]
说明:
italic可能不会得到所有字体的支持。 了解更多支持什么轴和风格,请访问 字体来源网站。 。 。 .
最后,可以在CSS样式表,CSS模块,或CSS-in-JS中引用字体名称.
body {
font-family: "Sofia Sans Condensed Variable";
}
许可证发放
总是确保读取您使用的每个字体的许可证 。 收藏中的字体大多使用SIL Open Font License, v1.1. 一些字体使用Apache 2许可证. Ubuntu字体使用Ubuntu字体许可证v1.0.
2019年著作权 索非亚·桑斯计划作者 (中文(简体) )https://github.com/lettersoup/索菲亚-桑斯) Sofia Sans Condensed-Italic [wght].ttf:版权2019 索非亚桑斯计划作者 (中文(简体) )https://github.com/lettersoup/索菲亚-桑斯(中文(简体) ) OFL-1.1 数据
其他说明
字体版本( 按来源提供) : v6。 。 。 .
如果您有任何建议或想法来改进字体加载或扩展已存在的库的性能,可以随意恒星并贡献给此寄存器. 你可以通过创建 问题。 。 。 .