Fonts broken in chrome firefox chromium GTK Pango SOLVED

I managed to break my fonts by simply copying my fonts directory over from my old MSWinXP install.

(12.2, KDE 4.9.3)

Starting certain apps notably Firefox, chromium and nvidia-settings from console gave the following type of error:

~> nvidia-settings 


(nvidia-settings:7369): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Arial 9'


(nvidia-settings:7369): Pango-WARNING **: font_face status is: out of memory


(nvidia-settings:7369): Pango-WARNING **: scaled_font status is: out of memory


(nvidia-settings:7369): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial 9', text='●'


(nvidia-settings:7369): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Arial 8.251953125'


(nvidia-settings:7369): Pango-WARNING **: font_face status is: out of memory


(nvidia-settings:7369): Pango-WARNING **: scaled_font status is: out of memory


(nvidia-settings:7369): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial 8.251953125', text='The quick brown fox jumps over the lazy dog.'

I solved it by changing the permissiions of /usr/share/fonts, thus:

sudo chmod -Rv 775 /usr/share/fonts/

I am sure that experts may have advice on what I did wrong, and on whether my solution was a proper one, but it has worked. I am only making this post so that the title will show up in searches, so that if anyone else makes a similar mistake, they can at least find this work around and get back to a working internet browser!
Mods/admins please feel free to do as you wish with it…

This is essentially a duplicate of my cry for help here:
http://forums.opensuse.org/english/get-technical-help-here/applications/480440-hayulp-kde-firefox-chromium-broken.html

You cannot simply copy over fonts from XP. To get the MS fonts in your openSUSE you have to install " fetchmsttffonts ", this pulls in the free MS fonts.
Changing permissions of system folders is not the way to go. One step further would allow anybody to completely remove the /usr/share/fonts folder.

Point taken, Knurpht. I tried searching YAST for msttfonts, but obv with the ‘fetch’ needlessly tacked on to the front it did not find…

What permissions should be on the fonts folder and its sub-folders?

Aargh, sorry, I put an “f” too much in the name. Search for " fetchmsttfonts " and it will show up. BTW the package is in OSS.

On the permissions: folders need to be “root:root”, 755, files need to be “root:root”, 644

TYVM Knurpht…! I shall put them right ASAP…

Surely Knurpht the method I used, although as, you kindly point out, wrong in many ways, with a bit of care is a good way to get more fonts, including the MS ones, on to an openSUSE system. I now have about a kazillion fonts, 98% of which are ugly and useless, but hey, I have the choice!

Most openSUSE users do have somewhere a licenced copy of MSWin, even if an old copy of Win 3.11, on an old laptop, in a virtual install, or on a partner or other relative’s PC. The fonts are held in one folder, and can just be copied. Someone like yourself, expert in the dark arts of linux could advise where they should be put, and what permissions to apply to them, and hey presto! Job done?

On 11/15/2012 06:46 AM, wakou pecked at the keyboard and wrote:
> Knurpht, from the other thread Wrote:
>> Mmmm, I guess there should be better ways to import fonts, maybe at user
>> level.
> Surely Knurpht the method I used, although as, you kindly point out,
> wrong in many ways, with a bit of care is a good way to get more fonts,
> including the MS ones, on to an openSUSE system. I now have about a
> kazillion fonts, 98% of which are ugly and useless, but hey, I have the
> choice!
>
> Most openSUSE users do have somewhere a licenced copy of MSWin, even if
> an old copy of Win 3.11, on an old laptop, in a virtual install, or on a
> partner or other relative’s PC. The fonts are held in one folder, and
> can just be copied. Someone like yourself, expert in the dark arts of
> linux could advise where they should be put, and what permissions to
> apply to them, and hey presto! Job done?
>
>

Try looking under /usr/share/fonts