Closed Bug 1491860 Opened 1 year ago Closed 1 year ago

Use utf-8 strings for font names that we read from preferences

Categories

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

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

Another followup to bug 1490402: we read various lists of font family names from preferences, and it would make sense to do all this in UTF-8 now that the font-list code primarily works with UTF-8 names. Very few font family names are non-ASCII, so in general the strings will be smaller in this form.
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #9009641 - Flags: review?(lsalzman) → review+
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/541a1ba5f55a
Use utf-8 rather than utf-16 strings to read/store font family names from preferences, as they're almost entirely ASCII. r=lsalzman
https://hg.mozilla.org/mozilla-central/rev/541a1ba5f55a
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.