@xterm/xterm 5.5.0-beta.10 → 5.5.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -48,11 +48,13 @@ export function allowRescaling(codepoint: number | undefined, width: number, gly
|
|
|
48
48
|
return (
|
|
49
49
|
// Is single cell width
|
|
50
50
|
width === 1 &&
|
|
51
|
-
// Glyph exceeds cell bounds, add
|
|
51
|
+
// Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
|
|
52
52
|
// barely overlap
|
|
53
|
-
glyphSizeX > deviceCellWidth * 1.
|
|
53
|
+
glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
|
|
54
|
+
// Never rescale ascii
|
|
55
|
+
codepoint !== undefined && codepoint > 0xFF &&
|
|
54
56
|
// Never rescale emoji
|
|
55
|
-
|
|
57
|
+
!isEmoji(codepoint) &&
|
|
56
58
|
// Never rescale powerline or nerd fonts
|
|
57
59
|
!isPowerlineGlyph(codepoint) && !isNerdFontGlyph(codepoint)
|
|
58
60
|
);
|