[RESOLVED] Pango-WARNING **: failed to choose a font

General support questions
Post Reply
DavidA2011
Posts: 16
Joined: 2011/01/05 14:44:08

[RESOLVED] Pango-WARNING **: failed to choose a font

Post by DavidA2011 » 2011/10/19 11:18:13

Hi

I have a minimal Centos 6 installation. I am trying to run a simple wxWidgets program on it and get the following error message:

$ ./hworld

(hworld:2171): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'


wxGTK, wxGTK-devel and Pango packages are installed. /usr/share/fonts is empty.

Any suggestions please?

Best regards

David

DavidA2011
Posts: 16
Joined: 2011/01/05 14:44:08

Re: Pango-WARNING **: failed to choose a font

Post by DavidA2011 » 2011/10/19 12:34:20

Fixed by installing dejavu-lgc-sans-fonts package:

[code]
[b]yum install dejavu-lgc-sans-fonts[/b]
[/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

[RESOLVED] Pango-WARNING **: failed to choose a font

Post by AlanBartlett » 2011/10/19 20:31:53

Thank you for reporting back.

For posterity (and on your behalf) this thread is now marked [RESOLVED].

sbecue
Posts: 1
Joined: 2012/05/21 12:05:06

Re: [RESOLVED] Pango-WARNING **: failed to choose a font

Post by sbecue » 2012/05/21 13:59:57

I have the same probleme.

[code]
locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[/code]

[code]
Keyboaard is latin1 fr
[/code]

With the same KS, i have this error on CentOS 6.2, but not on RHEL6.2

the difference after the end of installation is packages liberation-sans-fonts


[code]
yum install liberation-sans-fonts
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package liberation-sans-fonts.noarch 0:1.05.1.20090721-4.el6 will be installed
--> Processing Dependency: liberation-fonts-common = 1.05.1.20090721-4.el6 for package: liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
--> Running transaction check
---> Package liberation-fonts-common.noarch 0:1.05.1.20090721-4.el6 will be installed
--> Processing Dependency: fontpackages-filesystem >= 1.13 for package: liberation-fonts-common-1.05.1.20090721-4.el6.noarch
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.41-1.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Installing:
liberation-sans-fonts noarch 1.05.1.20090721-4.el6 rhel 275 k
Installing for dependencies:
fontpackages-filesystem noarch 1.41-1.1.el6 rhel 8.8 k
liberation-fonts-common noarch 1.05.1.20090721-4.el6 rhel 21 k

Transaction Summary
===================================================================================================================================================
Install 3 Package(s)

Total download size: 305 k
Installed size: 610 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): fontpackages-filesystem-1.41-1.1.el6.noarch.rpm | 8.8 kB 00:00
(2/3): liberation-sans-fonts-1.05.1.20090721-4.el6.noarch.rpm | 275 kB 00:00
(3/3): liberation-fonts-common-1.05.1.20090721-4.el6.noarch.rpm | 21 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------
Total 6.0 MB/s | 305 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fontpackages-filesystem-1.41-1.1.el6.noarch 1/3
Installing : liberation-fonts-common-1.05.1.20090721-4.el6.noarch 2/3
Installing : liberation-sans-fonts-1.05.1.20090721-4.el6.noarch 3/3

Installed:
liberation-sans-fonts.noarch 0:1.05.1.20090721-4.el6

Dependency Installed:
fontpackages-filesystem.noarch 0:1.41-1.1.el6 liberation-fonts-common.noarch 0:1.05.1.20090721-4.el6

Complete!

[/code]


And is OK

Post Reply