Closed Bug 5099 Opened 21 years ago Closed 21 years ago

need to add LANG to nsFont

Categories

(Core :: CSS Parsing and Computation, defect, P3)

All
Other
defect

Tracking

()

VERIFIED WONTFIX

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.
Target Milestone: M6
Erik is dependent upon this before M7.
Target Milestone: M6 → M7
Blocks: 7228, 7521
Status: NEW → ASSIGNED
Target Milestone: M7 → M8
Target Milestone: M8 → M9
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
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.
Status: RESOLVED → VERIFIED
Verified WONTFIX
See peterl's 08/06/99 16:01 comment in bug 6451.
You need to log in before you can comment on or make changes to this bug.