我试图建立一个快照,但汉字被渲染成方形。有人知道怎么解决这个问题吗?

这是我的snapcraft.yaml:
name: cloudmusic
version: 1.4.3+snap2
summary: Cloud Music
description:
Search, listen and download your favorite music
apps:
cloudmusic:
command: cloudmusic
plugs: [unity7,opengl,home,network,network-bind,pulseaudio]
parts:
cloudmusic:
plugin: qmake
qt-version: qt5
options: [PREFIX=/usr]
project-files: [CloudMusic.pro]
source: src/
build-packages:
- build-essential
- gettext
- intltool
- suru-icon-theme
- qml-module-qt-labs-settings
- qml-module-qtquick-localstorage
- qml-module-qtgraphicaleffects
- qtdeclarative5-ubuntu-download-manager0.1
- qtdeclarative5-qtmultimedia-plugin
- qtdeclarative5-ubuntu-content1
- qt5-default
- qtbase5-dev
- qtdeclarative5-dev
- qtdeclarative5-dev-tools
- qtdeclarative5-ubuntu-ui-toolkit-plugin
- xvfb
stage-packages:
- ubuntu-sdk-libs
- qtubuntu-desktop
- qml-module-qtsysteminfo
- fonts-freefont-ttf
snap:
- -usr/share/doc
- -usr/include
environment:
plugin: copy
files:
cloudmusic.wrapper: bin/cloudmusic
snappy-qt5.conf: etc/xdg/qtchooser/snappy-qt5.conf上述snapcraft.yaml的Pastebin可在http://paste.ubuntu.com/19511184/找到。
发布于 2016-08-29 06:58:13
sudo apt-get install fonts-wqy-zenhei
这提供了所需的中文字体。
也可以从这里下载
并从Ubuntu中安装的基于GUI的字体安装。
https://askubuntu.com/questions/797036
复制相似问题