通过 assets 存储库将自定义字体添加到我的主题

This is a good catch, but you don’t want to use the path in your CSS like this, you should reference the files using the asset name as a variable:

@font-face {
   font-family: supply-light;
   src: url($supply-light);
}

This is covered in Include assets (e.g. images, fonts) in themes and components

8 个赞