Skip to content

Commit 53bc9f8

Browse files
authored
Merge pull request #5013 from Tyriar/tyriar/ascii
Don't rescale ascii
2 parents bee4fd0 + 4c90009 commit 53bc9f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/browser/renderer/shared/RendererUtils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ export function allowRescaling(codepoint: number | undefined, width: number, gly
5151
// Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
5252
// barely overlap
5353
glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
54+
// Never rescale ascii
55+
codepoint !== undefined && codepoint > 0xFF &&
5456
// Never rescale emoji
55-
codepoint !== undefined && !isEmoji(codepoint) &&
57+
!isEmoji(codepoint) &&
5658
// Never rescale powerline or nerd fonts
5759
!isPowerlineGlyph(codepoint) && !isNerdFontGlyph(codepoint)
5860
);

0 commit comments

Comments
 (0)