Remove left-behind ampersand merging from atlas text-drawing codepath

See #20402
This commit is contained in:
Henrik Rydgård committed 2025-05-29 09:54:40 +02:00
1 parent a521a90131
commit ff0bf64050
1 file changed
-6
-6
View File
@@ -518,9 +518,6 @@ void DrawBuffer::MeasureText(FontID font, std::string_view text, float *w, float
continue;
} else if (cval == '\t') {
cval = ' ';
} else if (cval == '&' && utf.peek() != '&') {
// Ignore lone ampersands
continue;
}
const AtlasChar *c = atlasfont->getChar(cval);
if (c) {
@@ -659,9 +656,6 @@ void DrawBuffer::DrawText(FontID font, std::string_view text, float x, float y,
continue;
} else if (cval == '\t') {
cval = ' ';
} else if (cval == '&' && utf.peek() != '&') {
// Ignore lone ampersands
continue;
}
const AtlasChar *ch = atlasfont->getChar(cval);
if (!ch)