星期三, 8月 05, 2015

Jira, Confluence Chart Plugin中文亂碼

JVM 內建字型不足所導致

1.install missing Chinese fonts

  • cjkuni-ukai-fonts (楷體)
  • cjkuni-uming-fonts (明體)
  • cjkuni-fonts-common
  • cjkuni-fonts-ghostscript
  • wqy-zenhei-fonts (文泉驛,黑體)
  • wqy-zenhei-fonts-common


2.copy to jvm
mkdir /opt/atlassian/confluence/jre/lib/fonts/fallback
cp /usr/share/fonts/cjkuni-ukai/ukai.ttc /opt/atlassian/confluence/jre/lib/fonts/fallback
cp /usr/share/fonts/cjkuni-uming/uming.ttc /opt/atlassian/confluence/jre/lib/fonts/fallback
cp /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc /opt/atlassian/confluence/jre/lib/fonts/fallback

p.s. 不知道cjkuni-fonts-common, cjkuni-fonts-ghostscript, wqy-zenhei-fonts-common在哪... 等待有緣人指點一下

3. restart Jira, Confluence

Reference



沒有留言: