From 35cff8d03ca6477f93f59bdc0cf744d995c312a5 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Tue, 12 Nov 2013 23:53:07 +0000 Subject: [PATCH] bug 909344 - treat U+007F as a control, not a printable character. r=roc --- gfx/thebes/gfxFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 21843d003987..8619b3dd3b5a 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -4167,14 +4167,14 @@ gfxFontGroup::Copy(const gfxFontStyle *aStyle) bool gfxFontGroup::IsInvalidChar(uint8_t ch) { - return ((ch & 0x7f) < 0x20); + return ((ch & 0x7f) < 0x20 || ch == 0x7f); } bool gfxFontGroup::IsInvalidChar(PRUnichar ch) { // All printable 7-bit ASCII values are OK - if (ch >= ' ' && ch < 0x80) { + if (ch >= ' ' && ch < 0x7f) { return false; } // No point in sending non-printing control chars through font shaping