Feb 6, 2014

HowTo: Fix Pango-WARNING **: failed to create cairo scaled font

Problem:
I encountered this problem on newly installed and updated Fedora 20

Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Arial Bold 19.53125' at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: font_face status is: out of memory at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: scaled_font status is: out of memory at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial Bold 19.53125', text=' 3R ' at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.


Solution:
1. open terminal
2. su -
3. chmod -Rf 777 /usr/share/fonts/*
4. Tada! Everything should be fixed now!

3 comments:

  1. Thanks for the tip. I suggest you go with the more secure options as below:

    $ su -
    # cd /usr/share/fonts
    # find -type d -exec chmod 755 {} \;
    # find -type f -exec chmod 644 {} \;

    ReplyDelete