Fix the problem of label cropping on the runtime platform. #6441
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Re: https://github.com/cocos-creator/2d-tasks/issues/2079, https://github.com/cocos-creator/2d-tasks/issues/1679
Changes:
runtime 平台的底层差异,baseline 的实现不同,绘制文本的时候增加了留白空间,但是 baseline 需要依据留白进行调整。
oppo手机快应用平台显示效果:
编辑器中的效果: