Closed Bug 550443 Opened 14 years ago Closed 14 years ago

GDI nsIFontEnumerator.EnumerateFonts returns an empty array for x-unicode if aGeneric is specified

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rain1, Assigned: jfkthame)

Details

Attachments

(1 file, 1 obsolete file)

fe = Components.classes["@mozilla.org/gfx/fontenumerator;1"].createInstance(Components.interfaces.nsIFontEnumerator); fe.EnumerateFonts("x-unicode", "serif", {})

returns an empty array with GDI.

fe.EnumerateFonts("x-unicode", "", {}) works, and so does fe.EnumerateFonts("x-western", "serif", {}).
It seems wrong for us to return an empty list for x-unicode; we don't really have much clue what the user is interested in, but claiming that no fonts support it is not helpful.
Assignee: nobody → jfkthame
Attachment #430589 - Flags: review?(jdaggett)
Refreshed patch for current trunk.

<ping/>
Attachment #430589 - Attachment is obsolete: true
Attachment #454685 - Flags: review?(jdaggett)
Attachment #430589 - Flags: review?(jdaggett)
Attachment #454685 - Flags: review?(jdaggett) → review+
http://hg.mozilla.org/mozilla-central/rev/1788dd246ece
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: