Skip to content

Commit 3f1cd39

Browse files
committed
Remove unused parameter (now that we are using em units not px)
1 parent 5ef7c55 commit 3f1cd39

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ts/output/chtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ CommonOutputJax<
272272
/**
273273
* @override
274274
*/
275-
public unknownText(text: string, variant: string, width: number = null, rscale: number = 1) {
275+
public unknownText(text: string, variant: string, width: number = null) {
276276
const styles: StyleList = {};
277277
const scale = 100 / this.math.metrics.scale;
278278
if (scale !== 100) {

ts/output/chtml/Wrappers/TextNode.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ export const ChtmlTextNode = (function <N, T, D>(): ChtmlTextNodeClass<N, T, D>
117117
if (text.length === 0) return;
118118
const bbox = this.getBBox();
119119
if (variant === '-explicitFont') {
120-
const {scale} = this.parent.getBBox();
121-
adaptor.append(parent, this.jax.unknownText(text, variant, bbox.w, scale));
120+
adaptor.append(parent, this.jax.unknownText(text, variant, bbox.w));
122121
} else {
123122
let utext = '';
124123
const chars = this.remappedText(text, variant);

0 commit comments

Comments
 (0)