Skip to content

Commit

Permalink
Merge pull request #5012 from Tyriar/tyriar/208102
Browse files Browse the repository at this point in the history
Only scale when over 50% of following cell
  • Loading branch information
Tyriar committed Mar 19, 2024
2 parents 9ec9dca + f8ae7ed commit bee4fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/renderer/shared/RendererUtils.ts
Expand Up @@ -48,9 +48,9 @@ export function allowRescaling(codepoint: number | undefined, width: number, gly
return (
// Is single cell width
width === 1 &&
// Glyph exceeds cell bounds, add 25% to avoid hurting readability by rescaling glyphs that
// Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
// barely overlap
glyphSizeX > deviceCellWidth * 1.25 &&
glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
// Never rescale emoji
codepoint !== undefined && !isEmoji(codepoint) &&
// Never rescale powerline or nerd fonts
Expand Down

0 comments on commit bee4fd0

Please sign in to comment.