diff --git "a/win32ss/gdi/ntgdi/freetype.c" "b/win32ss/gdi/ntgdi/freetype.c" index 44252a2fec1..2781ef17fdf 100644 --- "a/win32ss/gdi/ntgdi/freetype.c" +++ "b/win32ss/gdi/ntgdi/freetype.c" @@ -7387,9 +7387,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: WChar 0x%04x has a glyphSize.cx of zero\n", 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 a char 0x62 ('b') with zero width from riched20 here. + * This probably should not happen, but for now we just handle it. */ + if (ch0 > L' ' && ch0 != del && ch0 != nbsp && ch0 != 0x62 && 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. */