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

Use freetype #6170

Merged
merged 14 commits into from May 19, 2020
Merged

Use freetype #6170

merged 14 commits into from May 19, 2020

Conversation

PatriceJiang
Copy link
Contributor

Re: cocos-creator/2d-tasks#1616

Discuss: cocos/engine-native#2068

改动概括:

  • 在 JSB 模式中使用 freetype 渲染 Label

@PatriceJiang PatriceJiang marked this pull request as ready for review February 14, 2020 07:05
@holycanvas holycanvas changed the base branch from master to v2.4.0 March 4, 2020 02:47
@holycanvas
Copy link
Contributor

NativeTTF能放在adapter层么,放在引擎层面,在非native平台实际上用不到,会增加一些包体

@jareguo
Copy link
Contributor

jareguo commented Mar 6, 2020

冲突啦

@PatriceJiang
Copy link
Contributor Author

@holycanvas 感觉这里没有 适配行为,不太适合放到 jsb-adapter 里面

@PatriceJiang PatriceJiang marked this pull request as draft May 13, 2020 15:51
@holycanvas
Copy link
Contributor

麻烦 @knoxHuang 处理下,在非原生平台,2d-label 的材质和effect都剔除掉

@PatriceJiang PatriceJiang marked this pull request as ready for review May 15, 2020 10:48
@PatriceJiang
Copy link
Contributor Author

现有项目的 Label/RichText 都需要替换使用 2d-label 材质

@caryliu1999
Copy link
Contributor

现有项目的 Label/RichText 都需要替换使用 2d-label 材质

现在不同的 cacheMode 下,在原生使用 ttf 应该都走的是新的 freeType 了吧?

@PatriceJiang
Copy link
Contributor Author

只有 CHAR 模式 + TTF 才使用 freetype. 实现的是根据字符缓存纹理.

@holycanvas holycanvas merged commit 9f5e16f into cocos:v2.4.0 May 19, 2020
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

4 participants