Closed
Bug 78273
Opened 23 years ago
Closed 23 years ago
Embedding API: list avail fonts
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: bstell, Assigned: bstell)
References
Details
Attachments
(3 files)
26.90 KB,
patch
|
Details | Diff | Splinter Review | |
1.31 KB,
patch
|
Details | Diff | Splinter Review | |
28.59 KB,
patch
|
Details | Diff | Splinter Review |
Applications embedding gecko need the list of available fonts for a given language group so users can set the fallback preferences.
Updated•23 years ago
|
QA Contact: andreasb → teruko
Assignee | ||
Comment 2•23 years ago
|
||
Thanks for pointing out the existing API. The embedding effort has requested some slight changes: return a nsISimpleEnumerator instead of an array of strings. simpilify as much as possible - we can make EnumerateAllFonts a sub case of EnumerateFonts by passing in a null aLangGroup and aGeneric - we can eliminate HaveFontFor. (the new API actually calls nsIFontEnumerator.
Status: NEW → ASSIGNED
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.1
Assignee | ||
Updated•23 years ago
|
Whiteboard: patch waiting on platform buddy review (via email)
Comment 3•23 years ago
|
||
who is reviewing this ?
Comment 4•23 years ago
|
||
TM to 0.9.2 per PDT triage (it's OK to check it in by Friday or after 0.9.2 branch).
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Assignee | ||
Comment 5•23 years ago
|
||
Comment 6•23 years ago
|
||
need nsSetupRegistry.cpp change on mac also, we should call hasMoreElements in js first before we call getNext.
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
Please change + while ((fontName = aDataObject.getNext()) != null) { + fontName = fontName.QueryInterface(Components.interfaces.nsISupportsWString); to + while (aDataObject.hasMoreElements()) { + fontName = aDataObject.getNext(); + fontName = fontName.QueryInterface(Components.interfaces.nsISupportsWString); otherwise, it won't run on mac.
Assignee | ||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
please change according to my comment. we also need to check in mac project file for the IDL and nsFontList.cpp . please ask jbetak to review pref-fonts.js changes. for the rest, r=ftang
Comment 11•23 years ago
|
||
r=jbetak for the JS part of the patch
Comment 12•23 years ago
|
||
additional comment: please try to eliminate all dumps you can spare
Assignee | ||
Comment 13•23 years ago
|
||
I'll remove the dump("got font list, "+fileName+" "+lineNum+"\n"); but ftang specifically ask me to add the dump in the exception catch(e) { + dump("failed to get font list or pref object: "+e+", "+fileName+" "+lineNum+"\n"); }
Comment 14•23 years ago
|
||
What is the lang group exactly? Can you expand this comment with examples as well? + * @param aLangGroup limits the fonts to fonts in this language + * group. + return NS_ERROR_UNEXPECTED;; two semicolons? legal but odd. :) Fix those and you have an sr=blizzard
Assignee | ||
Comment 15•23 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: patch waiting on platform buddy review (via email)
You need to log in
before you can comment on or make changes to this bug.
Description
•