Skip to content

Commit 5ef7c55

Browse files
authored
Merge pull request #1084 from mathjax/unknown-text-width
Correct width for unknown fonts in scaled text in CHTML (mathjax/MathJax#3194)
2 parents 0a66984 + 146b3fc commit 5ef7c55

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)