Make the composition view use the same font as the terminal
This commit is contained in:
@@ -203,6 +203,7 @@ export class CompositionHelper {
|
|||||||
this._compositionView.style.top = cursorTop + 'px';
|
this._compositionView.style.top = cursorTop + 'px';
|
||||||
this._compositionView.style.height = cellHeight + 'px';
|
this._compositionView.style.height = cellHeight + 'px';
|
||||||
this._compositionView.style.lineHeight = cellHeight + 'px';
|
this._compositionView.style.lineHeight = cellHeight + 'px';
|
||||||
|
this._compositionView.style.fontFamily = this._terminal.options.fontFamily;
|
||||||
// Sync the textarea to the exact position of the composition view so the IME knows where the
|
// Sync the textarea to the exact position of the composition view so the IME knows where the
|
||||||
// text is.
|
// text is.
|
||||||
const compositionViewBounds = this._compositionView.getBoundingClientRect();
|
const compositionViewBounds = this._compositionView.getBoundingClientRect();
|
||||||
|
|||||||
Reference in New Issue
Block a user