Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify _BASELINE_RATIO on runtime. #5799

Merged

Conversation

@caryliu1999
Copy link
Contributor

caryliu1999 commented Nov 27, 2019

@@ -27,7 +27,7 @@
// Draw text the textBaseline ratio (Can adjust the appropriate baseline ratio based on the platform)
let _BASELINE_RATIO = 0.26;
if (CC_RUNTIME) {
_BASELINE_RATIO = 0;
_BASELINE_RATIO = -0.05;

This comment has been minimized.

Copy link
@holycanvas

holycanvas Nov 27, 2019

Contributor

这个手改的方式有点恶心呀

This comment has been minimized.

Copy link
@caryliu1999

caryliu1999 Nov 28, 2019

Author Contributor

这个手改的方式有点恶心呀

是啊,之前这个值加的也是为了兼容多个平台,后面我看下能不能做字符检测取消这个。

@holycanvas holycanvas merged commit 520bb4f into cocos-creator:v2.2.1-release Nov 27, 2019
1 check passed
1 check passed
ci/circleci: test Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.