Improve glyph padding, especially in large font sizes

Fixes #4066
This commit is contained in:
Daniel Imms
2022-08-26 07:26:36 -07:00
parent d92d7904ab
commit 774ebe40e6
3 changed files with 35 additions and 20 deletions
@@ -427,7 +427,7 @@ export class WebglCharAtlas implements IDisposable {
// Draw custom characters if applicable
let customGlyph = false;
if (this._config.customGlyphs !== false) {
customGlyph = tryDrawCustomChar(this._tmpCtx, chars, padding, padding, this._config.scaledCellWidth, this._config.scaledCellHeight);
customGlyph = tryDrawCustomChar(this._tmpCtx, chars, padding, padding, this._config.scaledCellWidth, this._config.scaledCellHeight, this._config.fontSize);
}
// Whether to clear pixels based on a threshold difference between the glyph color and the