mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 07:07:38 +03:00
Fix Em/En dash rendering by falling back to hyphen
This commit is contained in:
parent
0e741a97e5
commit
155914f004
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user