Fix Em/En dash rendering by falling back to hyphen

This commit is contained in:
Antigravity Agent 2026-01-22 17:48:44 -05:00
parent 0e741a97e5
commit 155914f004

View File

@ -237,6 +237,10 @@ const EpdGlyph* CustomEpdFont::getGlyph(uint32_t cp, const EpdFontStyles::Style
currentCp = 32; // Space
triedFallback = true;
continue;
} else if (currentCp == 0x2013 || currentCp == 0x2014) { // En/Em dash
currentCp = 0x002D; // Hyphen-Minus
triedFallback = true;
continue;
}
}