Merge pull request #5013 from Tyriar/tyriar/ascii

Don't rescale ascii
This commit is contained in:
Daniel Imms
2024-03-20 10:09:19 -07:00
committed by GitHub
+3 -1
View File
@@ -51,8 +51,10 @@ export function allowRescaling(codepoint: number | undefined, width: number, gly
// Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
// barely overlap
glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
// Never rescale ascii
codepoint !== undefined && codepoint > 0xFF &&
// Never rescale emoji
codepoint !== undefined && !isEmoji(codepoint) &&
!isEmoji(codepoint) &&
// Never rescale powerline or nerd fonts
!isPowerlineGlyph(codepoint) && !isNerdFontGlyph(codepoint)
);