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

purgeCachedData can't purge TTF font cache #20410

Open
drelaptop opened this issue Dec 12, 2019 · 1 comment
Open

purgeCachedData can't purge TTF font cache #20410

drelaptop opened this issue Dec 12, 2019 · 1 comment

Comments

@drelaptop
Copy link
Contributor

drelaptop commented Dec 12, 2019

  • cocos2d-x version: 3.17.1
  • devices test on: all

Steps to Reproduce:

  1. TTF font is big, so we trim it when first release
  2. we may hotupdate it at next little version
  3. but the hotupdate can't reload TTF font file

related modify: #18117

@drelaptop
Copy link
Contributor Author

drelaptop commented Dec 12, 2019

s_cacheFontData of FontFreeType will always keep in memory, and its ref count will up and up...

image

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

No branches or pull requests

1 participant