Closed
Bug 5099
Opened 26 years ago
Closed 26 years ago
need to add LANG to nsFont
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
WONTFIX
M9
People
(Reporter: erik, Assigned: peterl-retired)
References
Details
Unicode unifies the CJK (Chinese, Japanese, Korean) range. HTML has introduced
the LANG attribute. The spec says that this is to be used for CJK
disambiguation, among other things. So if the CSS resolves to a generic font
like "serif", then we need to select the right font (C, J or K) depending on
the language.
The LANG attribute can be specified for individual elements, and is inherited
from parent elements. If the HTML document does not have any LANG attributes,
the HTTP headers should be examined for the Content-Language header. If that is
missing too, the LANG should be NULL in nsFont. In that case, we can use the
charset of the document as a fallback (heuristic). A separate bug report will
be filed for the charset.
Since LANG is an ASCII string, the nsFont field can be either char* or nsString.
If it is simpler to use nsString, please do so.
Assignee | ||
Updated•26 years ago
|
Target Milestone: M6 → M7
Updated•26 years ago
|
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M7 → M8
Assignee | ||
Updated•26 years ago
|
Target Milestone: M8 → M9
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 2•26 years ago
|
||
Adding lang to nsFont is not the right location, the style system re-uses
nsFont for different content nodes which may be in dofferent languages.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•26 years ago
|
||
Verified WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•