Bug 132577

Summary: SuSE Serif Font has no Italics
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Brian Harris <brian>
Component: UsabilityAssignee: Stefan Hundhammer <shundhammer>
Status: RESOLVED FIXED QA Contact: Adrian Schröter <adrian.schroeter>
Severity: Blocker    
Priority: P5 - None CC: coolo, kukuk
Version: Final   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lang_fonts.diff

Description Brian Harris 2005-11-07 16:32:55 UTC
If you try to use the SuSE Serif font in, for example, openoffice, selecting italics makes no difference to the displayed font.
This severley limits its usability.
Comment 1 Michael Gross 2005-11-07 16:43:35 UTC
Please always selct the right component and version (opensuse is for the wiki at opensuse.org only). Thanks. Don't know if this is a real bug, asking the maintainer. Stephan?
Comment 2 Stephan Binner 2006-02-10 13:25:49 UTC
Removed SuSE fonts from desktop-data-* packages.
Comment 3 Mike Fabian 2006-02-10 15:03:32 UTC
"dejavu" package submitted to replace the SUSE fonts.

The DejaVu fonts have Italic (Oblique) for Serif as well.
Comment 4 Stephan Kulow 2006-02-10 15:13:14 UTC
that makes FIXED then
Comment 5 Mike Fabian 2006-02-10 15:30:06 UTC
I'll should probably add some rules to fontconfig to replace
the SUSE fonts with the Déjàvu fonts.
Comment 6 Mike Fabian 2006-02-10 18:15:39 UTC
I've added the following rules to /etc/fonts/suse-pre-user.conf:

<!--
  The SUSE fonts have been dropped from SuSE Linux >= 10.1 in
  favour of the DejaVu fonts. All extensions the SUSE fonts had
  over the original Bitstream fonts have already been merged into the
  DejaVu fonts and the DejaVu fonts contain many glyphs not in
  the SUSE fonts. Therefore there is no reason to use the SUSE
  fonts anymore.

  As old config files or documents users might still refer to the SUSE
  fonts, we add rules here to use the DejaVu fonts as a replacement
  if the SUSE fonts are missing (The SUSE fonts are still used
  if they are still available for best compatibility).

-->

        <match target="pattern">
                <test name="family">
                        <string>SUSE Sans</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>DejaVu Sans</string>
                </edit>
        </match>

        <match target="pattern">
                <test name="family">
                        <string>SUSE Sans Mono</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>DejaVu Sans Mono</string>
                </edit>
        </match>

        <match target="pattern">
                <test name="family">
                        <string>SUSE Serif</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>DejaVu Serif</string>
                </edit>
        </match>
Comment 7 Steffen Winterfeldt 2006-02-13 16:13:36 UTC
If some one of you wonder why beta4 can't display fonts properly during
installation: it might be a good idea to tell someone if fonts are removed.

Just an idea.
Comment 8 Adrian Schröter 2006-02-13 16:19:05 UTC
the font is not removed, it is still in the package.

Only the fontconfig conf file has been changed.
Comment 11 Mike Fabian 2006-02-13 17:29:32 UTC
Steffen changed the instsys to use the DejaVu fonts instead
of the SUSE fonts.

Unfortunately this change alone was not enough.  I forgot to add the
DejaVu fonts to the "prefer" lists in the fontconfig configuration.
As FreeSans is in the "prefer" lists, YaST2 prefers "FreeSans" over
"DejaVu" even if "DejaVu" is available.  If I add "DejaVu" to the
prefer lists, everything works again.

Nevertheless it is still a mystery to me why the German umlauts were
displayed as boxes because even FreeSans has German umlauts. I.e. even
when neither the SUSE fonts nor the DejaVu fonts were available, YaST2
should still have been able to display German correctly with FreeSans.
I don't yet know why this failed. I could be a bug in Qt or in fontconfig.
I suspect fontconfig ...

Comment 12 Steffen Winterfeldt 2006-02-13 18:05:25 UTC
*** Bug 150482 has been marked as a duplicate of this bug. ***
Comment 13 Mike Fabian 2006-02-13 18:18:30 UTC
Created attachment 68134 [details]
lang_fonts.diff

Patch for /usr/share/YaST2/data/lang_fonts (package "yast1-qt").
Comment 14 Mike Fabian 2006-02-13 18:20:14 UTC
The DejaVu fonts should be added to the file /usr/share/YaST2/data/lang_fonts
as well.

A patch to do this is attached in comment #13.

Reassigning to Stefan Hundhammer <sh@suse.de> to apply this patch to the
yast2-qt package.
Comment 15 Stefan Hundhammer 2006-02-14 10:26:19 UTC
Patch applied. Will be rolled out with yast2-qt-2.13.14