See bug 5099: http://bugzilla.mozilla.org/show_bug.cgi?id=5099 We also need to add the document's charset to the nsFont struct, so that the font lookup code can use the charset as a fallback if the document has not specified its language(s). Again, the charset is an ASCII string, so the nsFont field can be either char* or nsString. Use whatever is easiest. The document's charset may not be available yet. Talk to email@example.com.
Erik is dependent upon this before M7.
You can find out the charset by calling the nsIDocument::GetDocumentCharacterSet to find out the charset of the document. peterl: please response. We depond on this for accuracy and performacne on all three platforms.
Adding charset to nsFont is not the right location, the charset can simply be set in the rendering context.
See peterl's 08/06/99 16:01 comment in bug 6451.