[fix] bmfont uv bug when overflow is clamp (#12374)

This commit is contained in:
LeeYip
2022-09-14 11:42:39 +08:00
committed by GitHub
parent 8332386fe5
commit 44dd12a6fe
+1 -1
View File
@@ -632,7 +632,7 @@ export const bmfontUtils = {
py -= clipTop;
}
if ((py - letterDef.h * _bmfontScale < _tailoredBottomY) && _overflow === Overflow.CLAMP) {
if ((py - _tmpRect.height * _bmfontScale < _tailoredBottomY) && _overflow === Overflow.CLAMP) {
_tmpRect.height = (py < _tailoredBottomY) ? 0 : (py - _tailoredBottomY) / _bmfontScale;
}
}