Skip to content

Commit

Permalink
Merge pull request #5013 from Tyriar/tyriar/ascii
Browse files Browse the repository at this point in the history
Don't rescale ascii
  • Loading branch information
Tyriar committed Mar 20, 2024
2 parents bee4fd0 + 4c90009 commit 53bc9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/browser/renderer/shared/RendererUtils.ts
Expand Up @@ -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)
);
Expand Down

0 comments on commit 53bc9f8

Please sign in to comment.