1.参考字体: https://www.fontke.com/
2.下载.ttf包
- .ttf字体包处理方式
- http://font-spider.org/ 使用node 字体压缩进行压缩
参考:https://blog.csdn.net/amihui/article/details/53023358)
参考:https://github.com/aui/font-spider/blob/master/README-ZH-CN.md - 使用base64 进行转化使用 https://transfonter.org/
参考:https://www.jianshu.com/p/42da06d2f95e
3.引用使用
@font-face{
font-family: myFirstFont;
src: url('Sansation_Light.ttf'),url('Sansation_Light.eot'); /* IE9 */
}
div
{
font-family:myFirstFont;
}