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

richtext use canvas api #6975

Merged

Conversation

PatriceJiang
Copy link
Contributor

@PatriceJiang PatriceJiang commented Jul 10, 2020

Re: cocos/2d-tasks#2985

Changes:

  • RichText use canvas API instead of NativeTTF assembler

@PatriceJiang PatriceJiang changed the title use canvas api richtext use canvas api Jul 10, 2020
@PatriceJiang
Copy link
Contributor Author

PatriceJiang commented Jul 10, 2020

freetype 和 编辑器获取的 文本尺寸有差别, 导致布局差异. 使用 canvas 接口维持旧版本的表现.

@PatriceJiang PatriceJiang marked this pull request as ready for review Jul 10, 2020
@holycanvas holycanvas requested a review from caryliu1999 Jul 15, 2020
@holycanvas holycanvas merged commit d8f4d61 into cocos:v2.4.1-release Jul 16, 2020
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants