mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix fontWeight options with DynamicCharAtlas
The atlas wasn't using these values when setting the font.
This commit is contained in:
@@ -205,8 +205,9 @@ export default class DynamicCharAtlas extends BaseCharAtlas {
|
||||
this._tmpCtx.globalCompositeOperation = 'source-over';
|
||||
|
||||
// draw the foreground/glyph
|
||||
const fontWeight = glyph.bold ? this._config.fontWeightBold : this._config.fontWeight;
|
||||
this._tmpCtx.font =
|
||||
`${this._config.fontSize * this._config.devicePixelRatio}px ${this._config.fontFamily}`;
|
||||
`${fontWeight} ${this._config.fontSize * this._config.devicePixelRatio}px ${this._config.fontFamily}`;
|
||||
if (glyph.bold) {
|
||||
this._tmpCtx.font = `bold ${this._tmpCtx.font}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user