Bug 152490

Summary: wrong font for Greek
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michalis Kabrianis <mk>
Component: X11 ApplicationsAssignee: Mike Fabian <mfabian>
Status: RESOLVED DUPLICATE QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: PC   
OS: Other   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: gnome-terminal screenshot

Description Michalis Kabrianis 2006-02-21 14:37:18 UTC
After the first stage of the installation( i.e. after the reboot) of Novell Linux Desktop 10 Beta3, the font used for the Greek translations is wrong. It probably is not the same as the one used for the first stage of the installation.
The wrong font shows greek as ugly, italics with large spaces in between letters.

The same font is used after installation to the Gnome terminal, so screenshots may be provided if needed.
Comment 1 Mike Fabian 2006-02-21 15:02:23 UTC
Yes, please provide a screen shot.

And, please also provide the output of the commands:

    "fc-list :lang=el:outline=true"

    "fc-match sans:lang=el"
    "fc-match serif:lang=el"
    "fc-match monospace:lang=el"

The first command lists all the scalable Greek fonts available
on your system, the other 3 commands show the default fonts
used for Greek for "sans", "serif", and "monospace" respectively.

Maybe good Greek fonts have not been installed on your system.


Comment 2 Michalis Kabrianis 2006-02-21 15:36:37 UTC
The first command returns nothing.
Here is the output of all:
 
--- code start ---
mkab@linux:~> fc-list :lang=el:outline=true
mkab@linux:~> fc-match sans:lang=el
albw.ttf: "Albany AMT" "Regular"
mkab@linux:~> fc-match serif:lang=el
thowr___.ttf: "Thorndale AMT" "Regular"
mkab@linux:~> fc-match monospace:lang=el
cumbwr__.ttf: "Cumberland AMT" "Regular"
--- code end ---

FreeSans, FreeSerif and FreeMono all contain Greek glyphs, FreeMono is installed. So are MG-Open (but they don't contain monospace fonts).
In NLD9, the first command lists All Thorndale, Albany and Cumberland (x4 for Regular, Bold, Italics and BoldItalics), the other 3 commands have the same output, and the fonts look great.

 
Comment 3 Michalis Kabrianis 2006-02-21 15:37:41 UTC
Created attachment 69600 [details]
gnome-terminal screenshot
Comment 4 Mike Fabian 2006-02-21 15:48:39 UTC
I see.

Then I think this is a bug in fontconfig which Takashi IWAI <tiwai@suse.de>
has fixed already.

The code to find out which language is supported by which font in
fontconfig was broken.

That the command "fc-list :lang=el:outline=true" didn't list "Albany
AMT" although it is installed is due to that bug.

"Albany AMT" does support Greek as you can see in the following
output:

mfabian@shannon:~$ fc-list "Albany AMT:style=Regular" lang
:lang=aa|af|ast|ava|ay|be|bg|bi|br|bs|ca|ce|ch|co|cs|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|ik|io|is|it|ki|kl|kum|la|lb|lez|lt|lv|mg|mh|mt|nb|nds|nl|nn|no|ny|oc|om|os|pl|pt|rm|ru|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|sv|sw|tn|tr|ts|uk|vo|vot|wa|wen|wo|xh|yap|zu
mfabian@shannon:~$

(there is a |el| in the list of supported languages).

If you try the same command on your system, the |el| will be missing.
That is due to the fontconfig bug.

Fixed fontconfig packages are available here:

    ftp://ftp.suse.com/pub/projects/m17n/10.1/RPMS

Please update both the "fontconfig" and the "fonts-config" packages
from the above FTP URL and verify that the bug is really fixed.


Comment 5 Mike Fabian 2006-02-21 15:49:31 UTC
Closing as FIXED (for next beta).

Please repopen if the problem persists.
Comment 6 Michalis Kabrianis 2006-02-21 17:00:57 UTC
I updated the packages and although the fc-list command displays lots of fonts, the problem is not solved.

I managed to solve the problem by changing manually the font used in the terminal.

From Computer->Control Center->Fonts->Terminal Font (I guess that's the name, because I use the Greek version) I selected Cumberland AMT. The previously selected was "BitStream Vera Sans Mono Roman". 
If that's a decision made at install-time, it's normal it didn't change after the update, otherwise the bug is still there.
Comment 7 Mike Fabian 2006-02-21 17:11:54 UTC
I don't think "BitStream Vera Sans Mono Roman" is setup in
gnome-terminal as default. The default should be "monospace".
And the alias "monospace" should expand to "Cumberland AMT"
now that you have the updated fontconfig packages.

Are you sure that "monospace" was not the default after installation?



Comment 8 Michalis Kabrianis 2006-02-21 17:21:00 UTC
Unfortunately yes.
I even logged out and in again.
Comment 9 Mike Fabian 2006-02-21 19:32:43 UTC
Am I right that problems remain only in gnome-terminal?

Your screen shot in comment #3 shows nice greek in the menus of
gnome-terminal, only the Greek font used in the terminal shell is an
ugly bitmap font.

I.e. probably you have nice Greek fonts everywhere in your system now,
except inside gnome-terminal.

Is that right?

Comment 10 Michalis Kabrianis 2006-02-22 07:22:46 UTC
That is correct.
The problem is only inside gnome-terminal.
Initially (during the installation) the problem existed everywhere but after installation (and without the updated packages) the problem has been only in the gnome-terminal.

I created a new user after the update and logged in as that user. That user also has Bitstream Vera Sans Mono Roman as his terminal font in the control panel.
Comment 11 Mike Fabian 2006-02-22 11:39:59 UTC
Do you have the package "dejavu" installed?

You are right that "Bitstream Vera Sans Mono Roman" is currently set
as the default terminal font in Gnome.

I think it is better to use "DejaVu Sans Mono Book" instead because
the DejaVu fonts are an extension of the Bitstream fonts which include
Greek and Cyrillic in a style which looks OK together with the Latin
in the same fonts.

Of course we have to make sure that the "dejavu" package is installed then.

Comment 12 Mike Fabian 2006-02-22 11:48:49 UTC
Instead of using  "DejaVu Sans Mono Book" as the default terminal font
for Gnome I think it would be even better to use the generic
alias "monospace" as the default.

Using "monospace" guarantees nice results for the language set in the
locale environment.

The only disadvantage of "monospace" I can see is that it usually
expands to a "Courier" style font, for example in English locale it
will expand to "Cumberland AMT" if the "agfa-fonts" package is
installed and to "Courier New" if the Microsoft Webfonts are
installed.  If neither are installed, it will expand to "Nimbus Mono
L".  But it will almost never expand to a sans-serif monospace font.
There are not many scalable, sans-serif monospace fonts available.
The only ones we have are "Bitstream Vera Sans Mono" and "DevaVu Sans
Mono".


Comment 13 Michalis Kabrianis 2006-02-22 11:52:03 UTC
Dejavu is not installed, and it does not seem to be existent in Yast2.
I want to remind that I'm talking about NLD10 Beta3

Thanks
Comment 14 Mike Fabian 2006-02-22 12:24:39 UTC

*** This bug has been marked as a duplicate of 54176 ***