我尝试过添加" SanFranciscoFont-master"文件
@font-face {
font-family: "San Francisco";
src: url("path to folder");
}
https://gist.github.com/AndrewBarba/2c0f6612ceef30f5f55d https://github.com/AppleDesignResources/SanFranciscoFont
仍然没有得到所需的字体
font-family: .SFNSDisplay;
我添加了资产文件夹.otf格式字体。
答案 0 :(得分:1)
/assets/fonts
; @ font-face { font-family:'旧金山'; src:url('/ assets / fonts / SanFrancisco.otf'); }
font-family: "San Francisco";