diff --git "a/win32ss/gdi/ntgdi/freetype.c" "b/win32ss/gdi/ntgdi/freetype.c" index 92070ec1fde..ae4a0ce0921 100644 --- "a/win32ss/gdi/ntgdi/freetype.c" +++ "b/win32ss/gdi/ntgdi/freetype.c" @@ -7048,12 +7048,13 @@ IntExtTextOutW( glyphSize.cx = realglyph->bitmap.width; glyphSize.cy = realglyph->bitmap.rows; - /* Do chars > space & not DEL & not nbsp have a glyphSize.cx of zero? */ - if (ch0 > L' ' && ch0 != del && ch0 != nbsp && glyphSize.cx == 0) - { - DPRINT1("WARNING: family_name '%s' WChar 0x%04x has a glyphSize.cx of zero\n", - face->family_name, ch0); - } + /* Do chars > space & not DEL & not nbsp have a glyphSize.cx of zero? + * HACK: CORE-19872 when handling RTF '\b' for BOLD escape sequence. + * Sometimes we get this from riched20. Also, we handle 0x21 for + * Control Panel Regional Settings when setting Thai localization. */ + if (ch0 > L' ' && ch0 != del && ch0 != nbsp && ch0 != 0x62 && ch0 != 0x21 && glyphSize.cx == 0) + DPRINT1("WARNING: Font '%s-%s' WChar 0x%04x has a glyphSize.cx of zero\n", + face->family_name, face->style_name, ch0); /* Don't ignore spaces or non-breaking spaces when computing offset. * This completes the fix of CORE-11787. */