Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.3k views
in Technique[技术] by (71.8m points)

APP引入第三方字体

APP引入第三方字体,把字体放服务器上引入比较好还是直接放在APP里面?

哪个会好一些?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

字体放服务器上,然后搞个配置文件,客户端去服务端下载缓存。这样搞呗,

  1. 更换也比较方便。
  2. 包体也不会很大。
  3. 使用的时候因为有缓存,也会快很多。

其他的方案还有针对页面来生存特定的font文件,然后都放服务端。比如说https://www.lilnong.top/static/html/createfont.html 这个demo


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...