development, 服务器

Wicked_pdf 在Ubuntu Server中使用微软雅黑

By jere on 2016-04-26 0 Comments

需要安装字体:

0. cp Windows: C:\Windows\fonts\msyh.ttf ~/Downloads/font/msyh.ttf
cp Windows: C:\Windows\fonts\msyh.ttf ~/Downloads/font/msyhbd.ttf
1. mkdir -p /usr/share/fonts/winFonts
2. cp ~/Downloads/font/*.ttf /usr/share/fonts/winFonts/
3. chmod 644 /usr/share/fonts/winFonts/*.ttf
4. cd /usr/share/fonts/winFonts/
5. mkfontscale
6. mkfontdir
7. fc-cache -fv

fc-list里就有了

参考:http://my.oschina.net/itblog/blog/278566

打赏

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用*标注