mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
bug 909344 - treat U+007F as a control, not a printable character. r=roc
This commit is contained in:
parent
445d7ac247
commit
35cff8d03c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user