Rearrange italic/bold to get _ctx.font validating
This commit is contained in:
@@ -357,7 +357,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
|
|||||||
const fontWeight = isBold ? terminal.options.fontWeightBold : terminal.options.fontWeight;
|
const fontWeight = isBold ? terminal.options.fontWeightBold : terminal.options.fontWeight;
|
||||||
const fontStyle = isItalic ? 'italic' : '';
|
const fontStyle = isItalic ? 'italic' : '';
|
||||||
|
|
||||||
return `${fontWeight} ${fontStyle} ${terminal.options.fontSize * window.devicePixelRatio}px ${terminal.options.fontFamily}`;
|
return `${fontStyle} ${fontWeight} ${terminal.options.fontSize * window.devicePixelRatio}px ${terminal.options.fontFamily}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user