Closed
Bug 81528
Opened 24 years ago
Closed 24 years ago
Invalid JIS 201 fonts on Redhat Japanese 6.2
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: amyy, Assigned: bstell)
References
Details
(Keywords: intl, regression)
Attachments
(6 files)
104.83 KB,
image/jpeg
|
Details | |
2.61 KB,
text/plain
|
Details | |
6.95 KB,
patch
|
Details | Diff | Splinter Review | |
1.68 KB,
patch
|
Details | Diff | Splinter Review | |
2.61 KB,
patch
|
Details | Diff | Splinter Review | |
3.35 KB,
patch
|
Details | Diff | Splinter Review |
Build: 05-17 linux trunk build.
Go to some Japanese or Chinese pages:
http://home.netscape.com/ja, http://home.netscape.com/zh/cn/
http://www.sina.com.cn/, http://www.snweb.com/, http://www.china.com
you will find the Alphabet and numbers in those pages text string(e.g. inside
those news header together with double-byte characters) are display as blank.
However, on western pages, all those alphabet and numbers are display fine
though.
This is a regression, I didn't see it till 05-15-08 trunk build, and started on
05-16-05 build.
Reporter | ||
Comment 1•24 years ago
|
||
Add keywords and change QA contact to myself.
Keywords: intl,
regression
QA Contact: andreasb → ylong
Reporter | ||
Comment 2•24 years ago
|
||
aActually, in Composer, if you creat a document that contains alphabet and
numbers with double0byte charset(e.g. s-jis), then browser it or re-open from
Composer, you won't able to see it also.
Comment 3•24 years ago
|
||
Frank landed converter change on 5/15 and 5/16, might be related.
Reassign to ftang.
Assignee: nhotta → ftang
Keywords: nsbeta1
Comment 5•24 years ago
|
||
Checkins between 05/15/2001 00:00 and 05/16/2001 00:05
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=05%2F15%2F2001+00%3A00%3A00&maxdate=05%2F16%2F2001+00%3A05%3A00&cvsroot=%2Fcvsroot
Naoki, it started to happen from 2001-05-15-21-mtrunk build.
The last good build is 2001-05-15-08-mtrunk.
Comment 7•24 years ago
|
||
05/15/2001 18:34, Brian changed mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp.
Brian, please take a look at this.
Assignee: ftang → bstell
Reporter | ||
Comment 8•24 years ago
|
||
Also, you can not see those ascii and even a lots of double-byte character in
Page Source too.
Comment 9•24 years ago
|
||
ylong, could you attach a screen shot?
Reporter | ||
Comment 10•24 years ago
|
||
Comment 11•24 years ago
|
||
I cannot reproduce this on my local debug build.
Can anybody else reproduce?
Reporter | ||
Comment 12•24 years ago
|
||
I noticed the last comment for bug 72525 by Ervin Yan:
> nightly 2001051622 on Solaris 9
> All the GB18030 characters can display OK, but all the English characters are
disappeared.
Comment 13•24 years ago
|
||
Is this a beta stopper? Looks pretty bad to me, if we can't display alpha and
numerics on CJK pages.
Bstell - If this is a beta stopper, pls assign a M0.9.1 milestone.
Comment 14•24 years ago
|
||
This problem also happens when opening an ASCII text file on the browser and
changing the charset to CJK.
Although the ASCII string is not visible, you still can copy/paste the string
from browser window to a terminal window.
With environment varible NS_FONT_DEBUG set to 4, netscape outputs some debug
info to the terminal.
I'll attach the output when browser uses Japanese Shift-JIS charset to view a
plain ASCII text file.
Comment 15•24 years ago
|
||
Assignee | ||
Comment 16•24 years ago
|
||
Changed title from:
Can not display alphabet and numbers on CJK page
to
Invalid JIS 201 fonts on Redhat Japanese 6.2
Status: NEW → ASSIGNED
Summary: Can not display alphabet and numbers on CJK pages → Invalid JIS 201 fonts on Redhat Japanese 6.2
Target Milestone: --- → mozilla0.9.1
Assignee | ||
Comment 17•24 years ago
|
||
Redhat Japanese 6.2 has some fonts that have no glyphs.
eg: -wadalab-mincho-medium-r-normal--16-*-*-*-c-*-jisx0201.1976-0
The font system tries to use these and ends up drawing blanks.
Because these fonts pretend to have ascii all ascii characters are blank
making the browser unusable for Japanese.
Assignee | ||
Comment 18•24 years ago
|
||
Assignee | ||
Comment 19•24 years ago
|
||
Comment 20•24 years ago
|
||
Thanks Brian for taking this,
yes, I have mentioned this problem in the comments of bug 67732.
But it's great you can fix this.Thank you very much.
I haven't tried this patch yet but do you think this patch
can solve cns4-7 problem also? I'll try cns4-7 on our Monday.
Assignee | ||
Comment 21•24 years ago
|
||
Comment 22•24 years ago
|
||
Good news. I checked this patch for bug 71199 and
I found it works. The current patch is checking
only for jisx201 but I believe it will be generic.
I have one concern about performance. Is there
any way (by having a flag in nsGtkFont or by
having global hash table) to cache the result
of IsEmptyFont()? It seems that it checkes always
even when the font has been already checked.
Comment 23•24 years ago
|
||
*** Bug 81734 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
Whiteboard: patch ready, verified by sun. need review.
Updated•24 years ago
|
Whiteboard: patch ready, verified by sun. need review. → dataloss- patch ready, verified by sun. need review.
Assignee | ||
Comment 24•24 years ago
|
||
We need to be careful here.
What the patch does is try to detect what broken fonts
look like. Clearly, there is no spec on how to correctly
build a broken font. Thus, there is not a well defined
way to detect them. This test works by checking if the
per-char array has non-zero sized glyphs. These fonts
do have a valid min_bounds/max_bounds value even though
they don't have glyphs.
It is *quite* possible that a font (read: CJK
font) does not have a per-char array as it was considered
not to have helpful information and malloc'ing it would
be expensive at run time. This test would disable a font
like this.
We need to be careful of disabling valid fonts like this
(false positives).
Assignee | ||
Comment 25•24 years ago
|
||
Comment 26•24 years ago
|
||
r=ftang I think it is right to do risk managent and only do this checking for
the fonts which we know have problem (JIS0x0210 and CNS4-7 ) for now.
Comment 27•24 years ago
|
||
+PRBool
+nsFontGTK::IsInvalidFont(GdkFont* aGdkFont)
+{
+ // use these to make the result easier to understand
+ PRBool isInvalid = PR_TRUE;
+ PRBool isValid = PR_FALSE;
Why not make the function called "IsValidFont" so you can use PR_TRUE and
PR_FALSE and avoid the double negatives?
+ mDontUseThisFont = PR_TRUE;
Same here. Using negatives as variables makes things confusing. mUseThisFont
would be less confusing.
Fix those and you can have an sr=blizzard
Assignee | ||
Comment 28•24 years ago
|
||
I cannot call it IsValidFont: the function does not determine that
the font is valid; only that the font is not valid. I'll rename it
IsEmptyFont.
I'll also change mDontUseThisFont to mAlreadyCalledLoadFont.
thanks
Assignee | ||
Updated•24 years ago
|
Whiteboard: dataloss- patch ready, verified by sun. need review. → dataloss- reviewed/super-reviewed. waiting for tree to open
Assignee | ||
Comment 29•24 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: dataloss- reviewed/super-reviewed. waiting for tree to open
Reporter | ||
Comment 30•24 years ago
|
||
Fixed verified on 05-22 linux trunk build.
Status: RESOLVED → VERIFIED
Comment 31•23 years ago
|
||
OT: Can anyone test the patch in bug 108412 if it causes problems on Redhat
Japanese 6.2, please ? Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•