Get width of emoji/combined chars
This commit is contained in:
@@ -438,9 +438,11 @@ export class WebglCharAtlas implements IDisposable {
|
|||||||
// underline colors to prevent important colors could get cleared.
|
// underline colors to prevent important colors could get cleared.
|
||||||
let enableClearThresholdCheck = !powerlineGlyph;
|
let enableClearThresholdCheck = !powerlineGlyph;
|
||||||
|
|
||||||
let chWidth: number = 1;
|
let chWidth: number;
|
||||||
if (typeof codeOrChars === 'number' && (underline || strikethrough)) {
|
if (typeof codeOrChars === 'number') {
|
||||||
chWidth = this._unicodeService.wcwidth(codeOrChars);
|
chWidth = this._unicodeService.wcwidth(codeOrChars);
|
||||||
|
} else {
|
||||||
|
chWidth = this._unicodeService.getStringCellWidth(codeOrChars);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw underline
|
// Draw underline
|
||||||
|
|||||||
Reference in New Issue
Block a user