添加中文字体其实很简单,往容器里COPY一个ttf字体文件就生效了,不需要执行fc-cache。

基于debian 8的tomcat容器,Dockerfile:

COPY msyh.ttf /usr/share/fonts/msyh.ttf

容器启动的时候这个ttf就已经生效了。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-07-10
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-08-16
相关资源
相似解决方案