On 2002.12.20 Frederic Crozat wrote:
>On Fri, 20 Dec 2002 10:28:14 +0100, J.A. Magallon wrote:
>
>> Hi all...
>> 
>> Some parts of gnome refuse to work and hang in my box. I have tracked this
>> to be a problem related with fonts.
>
>It is probably a bug in freetype2 with one of your fonts..
>

Prepare to hear strange things....

Well, first of all, the "bug". fontconfig hangs if you activate this
in /etc/fonts/fonts.conf:
<!--
  Enable sub-pixel rendering
    <match target="font">
        <test qual="all" name="rgba">
            <const>unknown</const>
        </test>
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
    </match>
-->

In more detail, it breaks on the <test>. Changing it to
        <test name="rgba">
            <const>unknown</const>
        </test>
(so uses the default "any") it works. Perhaps "all" for uni-valued props
is broken ?

More. Once this is working, gedit (more exactly, gnomeprint) claims:

(gedit:7953): GnomePrint-WARNING **: Can't create GPFontEntry for Times-Regular
because the extension could not be recognized (f.gz)


(gedit:7953): GnomePrint-WARNING **: Can't create GPFontEntry for URW Grotesk
T- Bold because the extension could not be recognized (.gsf)


(gedit:7953): GnomePrint-WARNING **: Can't create GPFontEntry for
mdk_teams-Normal because the extension could not be recognized (.otf)

Don't ask how I got to this, but if I

  gunzip /usr/X11R6/lib/X11/fonts/100dpi/*.gz
  fc-cache -f /usr/X11R6/lib/X11/fonts/100dpi

I get:

(gedit:8103): GnomePrint-WARNING **: Can't create GPFontEntry for Times-Regular 
because the extension could not be recognized (.pcf)


(gedit:8103): GnomePrint-WARNING **: Can't create GPFontEntry for Times-Regular 
because the extension could not be recognized (.pcf)


(gedit:8103): GnomePrint-WARNING **: Can't create GPFontEntry for Utopia-Bold Italic 
because the extension could not be recognized (.pcf)

And if then

  gzip /usr/X11R6/lib/X11/fonts/100dpi/*.pcf
  fc-cache -f /usr/X11R6/lib/X11/fonts/100dpi

errors are gone. The only ones remaining are:

(gedit:8138): GnomePrint-WARNING **: Can't create GPFontEntry for URW Antiqua T- 
Regular Condensed because the extension could not be recognized (.gsf)


(gedit:8138): GnomePrint-WARNING **: Can't create GPFontEntry for URW Grotesk T- Bold 
because the extension could not be recognized (.gsf)


(gedit:8138): GnomePrint-WARNING **: Can't create GPFontEntry for mdk_teams-Normal 
because the extension could not be recognized (.otf)

??? Packagers' boxes can't gzip properly ?
Sizes with original files:

werewolf:/usr/X11R6/lib/X11/fonts/100dpi# ll timR24*
-r--r--r--    1 root     root         7254 dic  4 09:52 timR24-ISO8859-13.pcf.gz
-r--r--r--    1 root     root         7261 dic  4 09:52 timR24-ISO8859-15.pcf.gz
-r--r--r--    1 root     root         7240 dic  4 09:52 timR24-ISO8859-1.pcf.gz
-r--r--r--    1 root     root         6720 dic  4 09:52 timR24-ISO8859-2.pcf.gz
-r--r--r--    1 root     root         7189 dic  4 09:52 timR24-ISO8859-9.pcf.gz
-r--r--r--    1 root     root        26655 dic  4 09:52 timR24.pcf.gz

Sizes after my gunzip/gzip:

werewolf:/usr/X11R6/lib/X11/fonts/100dpi# ll timR24*
-r--r--r--    1 root     root         7276 dic  4 09:52 timR24-ISO8859-13.pcf.gz
-r--r--r--    1 root     root         7283 dic  4 09:52 timR24-ISO8859-15.pcf.gz
-r--r--r--    1 root     root         7261 dic  4 09:52 timR24-ISO8859-1.pcf.gz
-r--r--r--    1 root     root         6741 dic  4 09:52 timR24-ISO8859-2.pcf.gz
-r--r--r--    1 root     root         7210 dic  4 09:52 timR24-ISO8859-9.pcf.gz
-r--r--r--    1 root     root        26666 dic  4 09:52 timR24.pcf.gz

I really don't understand anything, but now it works.

So, or gnome-print (??) is buggy, because it has a hardcoded test for the
last four chars in the name to deduce extension, or the original files were
rotten, or my filesystem was rotten.

And I think this is all, fffolks. Nautilus is working again.

>Feel free to add your fonts one by one and find the bad font :)) (and file
>a bug report with it, of course :)
>

Going to learn about bugzilla....

-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.20-jam2 (gcc 3.2.1 (Mandrake Linux 9.1 3.2.1-2mdk))

Reply via email to