Skip to content

Commit 146b3fc

Browse files
committed
Correct width for unknown fonts in scaled text in CHTML (mathjax/MathJax#3194)
1 parent 0a66984 commit 146b3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/output/chtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ CommonOutputJax<
291291
// and call to getBBox().w in TextNode.ts)
292292
//
293293
if (width !== null) {
294-
styles.width = this.fixed(width * this.math.metrics.scale * rscale) + 'em';
294+
styles.width = this.fixed(width * this.math.metrics.scale) + 'em';
295295
}
296296
//
297297
return this.html('mjx-utext', {variant: variant, style: styles}, [this.text(text)]);

0 commit comments

Comments
 (0)