Make super- and subscripts respect height of stretched characters.

This commit is contained in:
Davide P. Cervone 2015-01-28 11:43:19 -05:00
parent 5b232c93e8
commit da8b1ea1ff

View File

@ -2773,7 +2773,7 @@
base.bbox.w -= base.bbox.ic; // remove IC (added by mo and mi)
delta = 1.3*base.bbox.ic + .05; // adjust faked IC to be more in line with expected results
}
if (this.data[this.base] &&
if (this.data[this.base] && HW == null && D == null &&
(this.data[this.base].type === "mi" || this.data[this.base].type === "mo")) {
if (this.data[this.base].data.join("").length === 1 && children[0].scale === 1 &&
!this.data[this.base].Get("largeop")) {u = v = 0}