Skip to content

Commit bee4fd0

Browse files
authored
Merge pull request #5012 from Tyriar/tyriar/208102
Only scale when over 50% of following cell
2 parents 9ec9dca + f8ae7ed commit bee4fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/renderer/shared/RendererUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export function allowRescaling(codepoint: number | undefined, width: number, gly
4848
return (
4949
// Is single cell width
5050
width === 1 &&
51-
// Glyph exceeds cell bounds, add 25% to avoid hurting readability by rescaling glyphs that
51+
// Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
5252
// barely overlap
53-
glyphSizeX > deviceCellWidth * 1.25 &&
53+
glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
5454
// Never rescale emoji
5555
codepoint !== undefined && !isEmoji(codepoint) &&
5656
// Never rescale powerline or nerd fonts

0 commit comments

Comments
 (0)