Pango-WARNING **: failed to choose a font, expect ugly output

前端 未结 5 811
别那么骄傲
别那么骄傲 2021-01-07 19:40

I\'m getting this error when starting anything that uses the Pango library. I\'m using Kubuntu 9.10. I\'ve done \'sudo apt-get --reinstall install\' on libgtk* libcairo* l

相关标签:
5条回答
  • 2021-01-07 19:49

    I did a lot of searching on this and never found a decent answer. My issue involved running virt-manager (an xwindows based utility) on a remote server. I have all the fonts on my xwindows box but not on the remote host.

    the i ran 'yum install xorg-x11-font*' on the remote host everything worked fine.

    0 讨论(0)
  • 2021-01-07 19:52

    Your fonts are probably installed in /usr/X11R6/share/fonts but since pango-1.24 the fonts should be in /usr/share/fonts. The solution is to link the X11 fonts:

    ln -s /usr/X11R6/share/fonts /usr/share

    This should fix the problem.

    0 讨论(0)
  • 2021-01-07 19:53

    I ran into this on Amazon Linux, with the minimal set of X packages necessary to run vncserver, and had to install dejavu-sans-fonts and dejavu-serif-fonts.

    0 讨论(0)
  • 2021-01-07 19:56

    Verify font file permissions, especially on fonts you have installed manually, such as: out of package management scope.

    Pango may fail with this error when the font is not readable by the desktop user. Example: font installed under /usr/share/fonts/..., owned by root, no others have read rights.

    0 讨论(0)
  • 2021-01-07 20:15

    Make sure that font you are using with pango is installed on the machine.

    Check for installed fonts in /usr/share/fonts directory.

    To install new fonts try the steps mentioned in this document:

    0 讨论(0)
提交回复
热议问题