@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/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -1572,8 +1572,10 @@ FontAtlas.textureSize = 256;
|
|
|
1572
1572
|
var height = baseline * TextUtils._heightMultiplier;
|
|
1573
1573
|
baseline = TextUtils._baselineMultiplier * baseline | 0;
|
|
1574
1574
|
if (!this.useImageData) {
|
|
1575
|
-
|
|
1576
|
-
|
|
1575
|
+
var as = Math.ceil(fontBoundingBoxAscent);
|
|
1576
|
+
var des = Math.ceil(fontBoundingBoxDescent);
|
|
1577
|
+
height = as + des + 1;
|
|
1578
|
+
baseline = as;
|
|
1577
1579
|
}
|
|
1578
1580
|
var _extendHeight = TextUtils._extendHeight;
|
|
1579
1581
|
height += _extendHeight;
|