@xterm/xterm 5.5.0-beta.10 → 5.5.0-beta.11

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.5.0-beta.10",
4
+ "version": "5.5.0-beta.11",
5
5
  "main": "lib/xterm.js",
6
6
  "style": "css/xterm.css",
7
7
  "types": "typings/xterm.d.ts",
@@ -48,9 +48,9 @@ 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 25% to avoid hurting readability by rescaling glyphs that
51
+ // Glyph exceeds cell bounds, add 50% to avoid hurting readability by rescaling glyphs that
52
52
  // barely overlap
53
- glyphSizeX > deviceCellWidth * 1.25 &&
53
+ glyphSizeX > Math.ceil(deviceCellWidth * 1.5) &&
54
54
  // Never rescale emoji
55
55
  codepoint !== undefined && !isEmoji(codepoint) &&
56
56
  // Never rescale powerline or nerd fonts