首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >中文字符以方形表示。

中文字符以方形表示。
EN

Ask Ubuntu用户
提问于 2016-07-10 14:53:01
回答 1查看 1.1K关注 0票数 5

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

这是我的snapcraft.yaml

代码语言:javascript
复制
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/找到。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-08-29 06:58:13

sudo apt-get install fonts-wqy-zenhei

这提供了所需的中文字体。

也可以从这里下载

并从Ubuntu中安装的基于GUI的字体安装。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/797036

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档