Closed
Bug 373952
Opened 18 years ago
Closed 18 years ago
CJK native font names are not recognized on non-CJK Windows
Categories
(Core Graveyard :: GFX: Win32, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jshin1987, Assigned: jshin1987)
Details
(Keywords: intl, verified1.8.1.4)
Attachments
(2 files, 1 obsolete file)
2.89 KB,
patch
|
smontagu
:
review+
rbs
:
superreview+
dveditz
:
approval1.8.1.4+
|
Details | Diff | Splinter Review |
10.83 KB,
text/html; charset=UTF-8
|
Details |
This issue was supposed to be fixed in bug 231426. It's partly solved in that it works well across CJK locales (Korean fonts on Japanese Windows, SC fonts on K Windows) where the codepage has 3 digits. However, it does not work on English locale and other locales where the codepage has 4 digits.
The following does not work if gCodePageStr has 4-digit-long codepage part (e.g. ".cp1252") while aWinName ends with '.cp932' (949,950,936).
+ else {
+ // font codepage != current codepage => map to the ASCII name
+ aWinName.Truncate(aWinName.Length() - gCodepageStr->Length());
+ }
Because fontNamemap.properties only has 3 digit codepages and it'll never have other codepages than it currently has (this is only used by branch), we can just use '6' in place of 'gCodepageStr->Length()'.
Assignee | ||
Comment 1•18 years ago
|
||
asking for r/sr and a.
The risk is very low and this should have been done properly in the original patch (spring 2005). It's my fault to overlook this problem.
While fixing this problem, I also added 4 Vista fonts to the mapping table.
Attachment #258933 -
Flags: superreview?(rbs)
Attachment #258933 -
Flags: review?(smontagu)
Attachment #258933 -
Flags: approval1.8.1.3?
Assignee | ||
Comment 2•18 years ago
|
||
I tested the previous patch on Vista and found a couple of typos in Vista font mapping.
Risk should be very low.
Attachment #258933 -
Attachment is obsolete: true
Attachment #258940 -
Flags: superreview?(rbs)
Attachment #258940 -
Flags: review?(smontagu)
Attachment #258940 -
Flags: approval1.8.1.3?
Attachment #258933 -
Flags: superreview?(rbs)
Attachment #258933 -
Flags: review?(smontagu)
Attachment #258933 -
Flags: approval1.8.1.3?
Assignee | ||
Comment 3•18 years ago
|
||
this is the same as attachment 173506 [details] to bug 231426 except that a typo in 'Gungsuh' (I omitted 'g' before 's') is fixed and Vista fonts are added.
Updated•18 years ago
|
Attachment #258940 -
Flags: review?(smontagu) → review+
Comment on attachment 258940 [details] [diff] [review]
patch ('typo fixed' in Vista font name mapping)
sr=rbs
Attachment #258940 -
Flags: superreview?(rbs) → superreview+
Comment 5•18 years ago
|
||
Comment on attachment 258940 [details] [diff] [review]
patch ('typo fixed' in Vista font name mapping)
Moving approval req., 1813 was a re-spin release
Attachment #258940 -
Flags: approval1.8.1.3? → approval1.8.1.4?
Comment 6•18 years ago
|
||
Comment on attachment 258940 [details] [diff] [review]
patch ('typo fixed' in Vista font name mapping)
approved for 1.8.1.4, a=dveditz for release-drivers
Attachment #258940 -
Flags: approval1.8.1.4? → approval1.8.1.4+
Assignee | ||
Comment 7•18 years ago
|
||
checked into 1.8.1.x branch
Comment 8•18 years ago
|
||
verified fixed 1.8.1.4 using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4pre) Gecko/2007042805 BonEcho/2.0.0.4pre / the cjk native font names are now recognized. Adding verified keyword
Keywords: fixed1.8.1.4 → verified1.8.1.4
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•