Closed Bug 399369 Opened 14 years ago Closed 14 years ago
Disable font fallback when a character is in the private use areas
Since the private use area is undefined we should only look at fonts we were asked to look at and not look at other fonts on the system for these code points.
Comment on attachment 284382 [details] [diff] [review] with all the ranges now! >+ // don't look in other fonts if the character is in a Private Use Area >+ if ((ch >= 0xE000 && ch < 0xF900) || >+ (ch >= 0xF0000 && ch < 0xFFFFF) || >+ (ch >= 0x100000 && ch < 0x10FFFF)) >+ return selectedFont; >+ The last two ranges are contiguous, so you can just do (ch >= 0xF0000 && ch <= 0x10FFFF))
Attachment #284382 - Flags: review?(smontagu) → review+
Target Milestone: --- → mozilla1.9 M10
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.