下载tff格式的字体

assets中新建文件夹fonts,把tff字体文件放在fonts,并在assets/css中新建font.css

@font-face {
    font-family: "Acy";
    src: url('../fonts/Acy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

在mian.js中引用font.css

import './assets/css/font.css'

在需要使用的地方设置新字体样式就可以了

font-family: "Acy";

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-07-27
  • 2021-08-19
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案