CentOS 安装宋体教程
时间:2014-09-13 01:59 来源:linux.it.net.cn 作者:it
/usr/share/fonts/simsun.ttc
mkfontdir
mkfontscale
fc-cache -fv
# 列出所有已经安装的中文字体,如果还没有安装中文字体,可参考上文提到的文章。
fc-list :lang=zh
# 宋体,SimSun:style=Regular
# 看下字体是怎么走的
fc-match Arial -s
# SimSun.ttf: "SimSun" "Regular"
# n019003l.pfb: "Nimbus Sans L" "Regular"
# cursor.pfa: "Cursor" "Regular"
# d050000l.pfb: "Dingbats" "Regular"
# s050000l.pfb: "Standard Symbols L" "Regular"
# 哎呀,是对的呀,为什么phantomjs不认呢,(ÒωÓױ)
# 查看下本地语言设置
locale
# LANG=zh_CN.UTF-8
# LC_CTYPE=zh_CN.UTF-8
# LC_NUMERIC="zh_CN.UTF-8"
# LC_TIME="zh_CN.UTF-8"
# LC_COLLATE="zh_CN.UTF-8"
# LC_MONETARY="zh_CN.UTF-8"
# LC_MESSAGES="zh_CN.UTF-8"
# LC_PAPER="zh_CN.UTF-8"
# LC_NAME="zh_CN.UTF-8"
# LC_ADDRESS="zh_CN.UTF-8"
# LC_TELEPHONE="zh_CN.UTF-8"
# LC_MEASUREMENT="zh_CN.UTF-8"
# LC_IDENTIFICATION="zh_CN.UTF-8"
# LC_ALL=
# 嗯,据说 QT 在对“宋体,SimSun:style=Regular”处理的时候是有问题的
export LC_CTYPE=en_US.UTF-8
fc-list :lang=zh
# SimSun,宋体:style=Regular
# 换了个顺序,试试...,呵呵,phantomjs中文的问题解决了 - - ||| (责任编辑:IT)
/usr/share/fonts/simsun.ttc mkfontdir mkfontscale fc-cache -fv # 列出所有已经安装的中文字体,如果还没有安装中文字体,可参考上文提到的文章。 fc-list :lang=zh # 宋体,SimSun:style=Regular # 看下字体是怎么走的 fc-match Arial -s # SimSun.ttf: "SimSun" "Regular" # n019003l.pfb: "Nimbus Sans L" "Regular" # cursor.pfa: "Cursor" "Regular" # d050000l.pfb: "Dingbats" "Regular" # s050000l.pfb: "Standard Symbols L" "Regular" # 哎呀,是对的呀,为什么phantomjs不认呢,(ÒωÓױ) # 查看下本地语言设置 locale # LANG=zh_CN.UTF-8 # LC_CTYPE=zh_CN.UTF-8 # LC_NUMERIC="zh_CN.UTF-8" # LC_TIME="zh_CN.UTF-8" # LC_COLLATE="zh_CN.UTF-8" # LC_MONETARY="zh_CN.UTF-8" # LC_MESSAGES="zh_CN.UTF-8" # LC_PAPER="zh_CN.UTF-8" # LC_NAME="zh_CN.UTF-8" # LC_ADDRESS="zh_CN.UTF-8" # LC_TELEPHONE="zh_CN.UTF-8" # LC_MEASUREMENT="zh_CN.UTF-8" # LC_IDENTIFICATION="zh_CN.UTF-8" # LC_ALL= # 嗯,据说 QT 在对“宋体,SimSun:style=Regular”处理的时候是有问题的 export LC_CTYPE=en_US.UTF-8 fc-list :lang=zh # SimSun,宋体:style=Regular # 换了个顺序,试试...,呵呵,phantomjs中文的问题解决了 - - ||| (责任编辑:IT) |