我最近安装了 inconsolata,现在当我预览字体时,它显示为正方形。
这是我的终端的预览。
这是我的文件权限:
> ls -lh /usr/share/fonts/truetype/inconsolata
total 60K
-rw-r--r-- 1 root root 58K Dec 6 2009 Inconsolata.otf
它位于此处(truetype 字体文件夹):
> ls -lh /usr/share/fonts/truetype
total 96K
drwxr-xr-x 2 root root 4.0K Jul 22 2014 abyssinica
drwxr-xr-x 2 root root 4.0K Jul 22 2014 dejavu
drwxr-xr-x 2 root root 4.0K Nov 17 22:43 droid
lrwxrwxrwx 1 root root 43 Nov 17 22:09 fonts-japanese-gothic.ttf -> / /etc/alternatives/fonts-japanese-gothic.ttf
drwxr-xr-x 2 root root 4.0K Jul 22 2014 freefont
drwxr-xr-x 2 root root 4.0K Feb 18 15:20 horai-umefont
drwxr-xr-x 2 root root 4.0K Mar 8 18:01 inconsolata
drwxr-xr-x 2 root root 4.0K Jul 22 2014 kacst
drwxr-xr-x 2 root root 4.0K Jul 22 2014 kacst-one
drwxr-xr-x 2 root root 4.0K Jul 22 2014 lao
drwxr-xr-x 2 root root 4.0K Jul 22 2014 liberation
drwxr-xr-x 2 root root 4.0K Feb 18 15:23 msttcorefonts
drwxr-xr-x 2 root root 4.0K Jul 22 2014 nanum
drwxr-xr-x 2 root root 4.0K Dec 19 10:11 openoffice
drwxr-xr-x 2 root root 4.0K Jul 22 2014 padauk
drwxr-xr-x 2 root root 4.0K Jul 22 2014 sinhala
drwxr-xr-x 2 root root 4.0K Jul 22 2014 takao-gothic
drwxr-xr-x 2 root root 4.0K Jul 22 2014 tibetan-machine
drwxr-xr-x 2 root root 4.0K Jul 22 2014 tlwg
drwxr-xr-x 2 root root 4.0K Jul 22 2014 ttf-indic-fonts-core
drwxr-xr-x 2 root root 4.0K Jul 22 2014 ttf-khmeros-core
drwxr-xr-x 2 root root 4.0K Jul 22 2014 ttf-punjabi-fonts
drwxr-xr-x 2 root root 4.0K Jul 22 2014 ubuntu-font-family
drwxr-xr-x 2 root root 4.0K Feb 18 15:20 unfonts-core
drwxr-xr-x 2 root root 4.0K Feb 18 15:21 wqy
有人能帮助我吗?我真的很想让这个字体工作。我已经通过更新了我的字体缓存fc-cache -f -v
,但它没有解决任何问题。
答案1
您已下载 OpenType 字体并将其存储在 TrueType 字体目录中。
我有完全相同的字体,但存储/usr/share/fonts/opentype/
在Inconsolata PDF 测试文件完美显示后:
sudo fc-cache --force --verbose
- 登出
- 重新登录...