Closed
Bug 114786
Opened 24 years ago
Closed 24 years ago
"font.name-list." code in nsFontMetricsWin::FindGenericFont do not work well with family name have space
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: ftang, Assigned: shanjian)
Details
I find this problem when I look at the code in
nsFontWin*
2852 nsFontMetricsWin::FindGenericFont(HDC aDC, PRUnichar aChar)
in this function, there are two place to copy pref value "font.name-list." to
font.name. And it then pass the font.name to nsFont. However, it seems the pref
store the font name without quote but the nsFont expect the font name with quote
if the font name contains space.
for example,
60 pref("font.name-list.serif.ja", "MS PMincho, MS PGothic, MS Mincho, MS
Gothic");
so the font.name will be 'MS PMincho, MS PGothic, MS Mincho, MS Gothic'. but I
think the nsFont is expecting
'"MS PMincho", "MS PGothic", "MS Mincho", "MS Gothic"' instead.
| Reporter | ||
Comment 1•24 years ago
|
||
sorry, I am wrong. It should be fine. mark this invalid.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•