Merge pull request #3866 from Tyriar/vsc_152478
Fix clipping of non-powerline chars
This commit is contained in:
@@ -490,7 +490,7 @@ export class WebglCharAtlas implements IDisposable {
|
|||||||
*/
|
*/
|
||||||
private _findGlyphBoundingBox(imageData: ImageData, boundingBox: IBoundingBox, allowedWidth: number, restrictedGlyph: boolean, customGlyph: boolean): IRasterizedGlyph {
|
private _findGlyphBoundingBox(imageData: ImageData, boundingBox: IBoundingBox, allowedWidth: number, restrictedGlyph: boolean, customGlyph: boolean): IRasterizedGlyph {
|
||||||
boundingBox.top = 0;
|
boundingBox.top = 0;
|
||||||
const height = this._config.scaledCellHeight;
|
const height = restrictedGlyph ? this._config.scaledCellHeight : this._tmpCanvas.height;
|
||||||
const width = restrictedGlyph ? this._config.scaledCharWidth : allowedWidth;
|
const width = restrictedGlyph ? this._config.scaledCharWidth : allowedWidth;
|
||||||
let found = false;
|
let found = false;
|
||||||
for (let y = 0; y < height; y++) {
|
for (let y = 0; y < height; y++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user