Bug 68211 - anaconda Japanese font size varying in places
Summary: anaconda Japanese font size varying in places
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: anaconda
Version: null
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
 
Reported: 2002-07-08 05:18 UTC by Jens Petersen
Modified: 2007-04-18 16:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-09-03 11:50:28 UTC
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2002-07-08 05:18:59 UTC
Description of Problem:
Some single Japanese kanji characters in the text of the installer
are a different size to the rest.  This looks very akward.

Version-Release number of selected component (if applicable):


How Reproducible:
every time

Steps to Reproduce:
1. do install in Japanese
2. go to the mouse configuration page for example

Actual Results:
The two kanji (Chinese) charcters [5th and 6th characters] of
the title, and the first kanji of the text to the right of the
mouse icon are noticeably smaller than the rest of the text 
(including other kanji characters).

Expected Results:
All the kanji chars should be displayed the same size.

Additional Information:
This problem problem has been occurring for a while with gtk2
anaconda.

Comment 1 Leon Ho 2002-07-16 01:02:40 UTC
Jeremy is trying to use Xft instead of pango with X font system now. We will only need to 
manage one font conf file as well as fixes couple bugs in anaconda if that's possible.

Comment 2 Jeremy Katz 2002-07-18 06:08:43 UTC
Switched to Xft in CVS; should hopefully fix these problems

Comment 3 Akira TAGOH 2002-07-26 14:47:46 UTC
font size looks good. but Japanese glyphs and Chinese glyphs are still mixed.
obvious difference is the punctuation mark. In Japanese, those glyphs is
rendered with low baseline. and in Traditional Chinese, it's rendered with
middle baseline. and in Simplified Chinese, it's rendered in between Japanese
and Traditional Chinese.
Also in Korean, it's rendered with top baseline.
Looks like current anaconda is choosing some glyphs for Traditional Chinese when
I install with Japanese.

BTW I tried this on Limbo-re0725.2.


Comment 4 Akira TAGOH 2002-07-30 08:43:34 UTC
I've tested the anaconda on X (I mean runs /usr/sbin/anaconda on the terminal).
when I ran it with LANG=ja_JP.eucJP and chose 'Japanese' for the language
selection, it works fine. but when I ran it with LANG=C and chose 'Japanese',
this problem appeared.
Is this the Pango issue? or does the laugnage selection's code have a bug?


Comment 5 Leon Ho 2002-07-31 04:00:07 UTC
I am not sure if anaconda uses serif. If it is, then it missing one of the ttf font in 
installation environment.

Comment 6 Akira TAGOH 2002-07-31 07:05:52 UTC
I don't think that's related this problem. because, as I said, I also saw this
problem on the environment already installed.

Comment 7 Leon Ho 2002-08-01 00:00:18 UTC
But anaconda does set the LANG environment.  
 
Also if you run LANG=C in pango, then it won't append any CJK font in the font list, 
therefore it will only use the default font alias list. 
 
Now the only different between anaconda installation env and installed env is the font we 
are missing, so that is my take on this problem. 


Comment 8 Akira TAGOH 2002-08-12 09:05:53 UTC
Hmm, if a current locale matches nothing on <match> tag, looks like Pango (or
fontconfig?) decides some glyphs from the last entry's font. for example, as I
said, when I ran anaconda with LANG=C, this problem appears. then when I move
<match> tag for Japanese to the end of <match> tag in fonts.conf, anaconda works
fine with LANG=C. if Pango or fontconfig can be clear something like the cache
for font, or if anaconda can re-creates an instance for font, maybe this problem
may be solved.
Owen, how do you think about it?


Comment 9 Owen Taylor 2002-08-14 02:47:44 UTC
Basically, Pango wasn't doing anything for language tags with Xft,
font ordering was based on the locale when a font description
was first loaded.

I believe pango-1.1.0-3 should fix this problem; it would be good
to test it to make sure it fixes the anaconda problem.

Comment 10 Jens Petersen 2002-08-15 06:09:53 UTC
This problem looks ok to me now; though I really don't like the mixture
of ttf and bitmap rendering for Japanese at least: it looks quite akward
to me anyway.  For Japanese I think we should either use all bitmap or all
ttf rendering not the current compromise.  Any other opinions?

Comment 11 Owen Taylor 2002-08-15 13:30:50 UTC
I think the mixed rendering now is just that some widgets aren't
being recreated so they are keeping their old fonts. (Known
problem)

Everything should be bitmap, as long as the characters are in the 
'Kochi Gothic' font.


Comment 12 Akira TAGOH 2002-08-15 13:58:23 UTC
Well, about using the embedded bitmap, you mean non-anti-aliased Kochi font is ugly?
Indeed, the Kochi fonts is rengered with the outline only may be ugly. but, if
we can use the anti-aliasing font, it's enough to me more than the embedded
bitmap font.

Comment 13 Akira TAGOH 2002-09-02 06:23:03 UTC
Hmm, this problem appears again in some button on below screen and online-help.
I wonder if the changing on Bug#65913 is affected Japanese.
I can see a problem since Milan-re0829.0. some Japanese glyphs and some Chinese
glyphs are mixed. and bitmap fonts and anti-aliased fonts are also mixed. it's
very ugly.
When I press Hide Help button, then press Show Help button, all glyphs  are
shown correctly on the online-help.


Comment 14 Nakai 2002-09-02 11:58:42 UTC
Japanese glyphs in Chinese fonts are very broken.
We should not use them in Japanese environment.

Severity high is appropriate.

Comment 15 Owen Taylor 2002-09-02 12:47:28 UTC
Is the online help widget being recreated when the language is
switched?

Comment 16 Akira TAGOH 2002-09-02 14:09:04 UTC
Probably yes, this problem appears immediately after switching the languages.
'Hide Help', 'Release Notes', 'Back', 'Next' button is also broken all at once.

Comment 17 Jeremy Katz 2002-09-02 16:58:13 UTC
Okay, everything should be completely be getting recreated now on language
switch in CVS and things look right to me.  I'll get an anaconda built and a
tree built so that this can be verified

Comment 18 Akira TAGOH 2002-09-03 11:50:20 UTC
Looks good. I've confirmed it on Milan-re0903.0.

Comment 19 Michael Fulbright 2002-12-20 17:38:25 UTC
Time tracking values updated


Note You need to log in before you can comment on or make changes to this bug.