Open
Bug 179946
Opened 22 years ago
Updated 2 years ago
Symbolic fonts do not display properly, need generic solution (linux only)
Categories
(Core :: Internationalization, defect)
Tracking
()
NEW
People
(Reporter: shanjian, Unassigned)
References
Details
We have similar problem on windows as well, it will be fixed in bug 94319.
Copied description from 94319:
Currently, when a symbolic font is utilized in a font face tag (ie. <font
face="wingdings">), the text between the font tags will not be displayed using
the symbolic font unless that particular font name has been appended to the
fontencoding.properties file (indicating that the font should be treated as
though it were utilizing a standard encoding (see Bug 77265)).
This solution is hardcoded and therefore not very adaptible.
If the user adds a new font symbolic font to their system, they will very
likely expect to be able to utilize it in the browser or email. Tediously
adding each new font to this hardcoded list is unwieldy and inelegant.
Is there a way to specify a more generic situation? Perhaps a flag for
embedders to indicate that, when a symbolic font is encountered, they would
just like to default to treating the font as though it utilizes windows-1252
encoding?
The following is the list of fonts that were not properly displayed during a
recent test:
Map Symbols
Marlett
Monotype Sorts
MS Outlook
MT Extra
Symbol
Wingdings 2
Wingdings 3
The solution is to use win-1252 as default encoding for symbol fonts. But we
only do this for font specified using font tag. See bug 94319 for detail and
testcase.
Comment 1•22 years ago
|
||
With my patch for bug 176290, it's relatively easy to fix this bug for Mozilla-Xft
(Mozilla with Xft turned on). As for Mozilla-X11core and Mozilla-FT(freetype),
I'm afraid hard-coding is unavoidable at the momemnt.
(nsFontMetrics(GTK|Xlib|Qt|FreeType).cpp
have a hard-coded list of 'symbol' fonts. They don't use fontEncoding.properties
file)
This doesn't mean that a generic solution cannot be found for those two cases,
of course.
I'll try to find one.
A question to shanjian. My understanding is that
'familyNameQuirks' field of nsFont can be different for a single font depending
on whether it's specified in html 'fontface' or via CSS. Am I right?
Can I take this one, Simon?
Reporter | ||
Comment 3•22 years ago
|
||
>> 'familyNameQuirks' field of nsFont can be different for a single font >>
depending
>> on whether it's specified in html 'fontface' or via CSS. Am I right?
Yes, absolutely right.
Blocks: 194560
*** Bug 249769 has been marked as a duplicate of this bug. ***
Updated•15 years ago
|
QA Contact: amyy → i18n
Comment 6•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: jshin1987 → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•