Skip to content

Commit 91b1c2d

Browse files
committed
Only remove left and right padding, so if a stretchy is just extender, it has the proper height and depth.
1 parent 9c71731 commit 91b1c2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ts/output/chtml/FontData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ export class ChtmlFontData extends FontData<
583583
padding: this.padding(HDW as ChtmlCharData, w - HDW[2]),
584584
};
585585
if (part === 'ext') {
586-
delete css.padding;
586+
const padding = (css.padding as string).split(/ /);
587+
padding[1] = padding[3] = '0';
588+
css.padding = padding.join(' ');
587589
if (!w && options.dx) {
588590
w = 2 * options.dx - 0.06;
589591
}

0 commit comments

Comments
 (0)