@galacean/engine-core 0.0.0-experimental-1.4-small-language.3 → 0.0.0-experimental-1.4-small-language.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -1568,8 +1568,10 @@ FontAtlas.textureSize = 256;
1568
1568
  var height = baseline * TextUtils._heightMultiplier;
1569
1569
  baseline = TextUtils._baselineMultiplier * baseline | 0;
1570
1570
  if (!this.useImageData) {
1571
- height = Math.round(TextUtils._heightMultiplier * (fontBoundingBoxAscent + fontBoundingBoxDescent));
1572
- baseline = Math.round(height / 4 + fontBoundingBoxAscent);
1571
+ var as = Math.ceil(fontBoundingBoxAscent);
1572
+ var des = Math.ceil(fontBoundingBoxDescent);
1573
+ height = as + des + 1;
1574
+ baseline = as;
1573
1575
  }
1574
1576
  var _extendHeight = TextUtils._extendHeight;
1575
1577
  height += _extendHeight;