关于PAGFont.RegisterFont的疑问 #2570
Answered
by
kevingpqi123
1456397920
asked this question in
Q&A
-
Android中调用PAGFont.RegisterFont后不调用PAGFont.UnregisterFont会不会有问题,比如调用PAGFont.RegisterFont注册100个字体而不unregister它们,内存这方面会不会有问题 |
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Nov 6, 2024
Replies: 1 comment
-
如果不再使用需要调用 PAGFont.UnregisterFont, PAGFont.RegisterFont 后内部会有一个 map 缓存 TypeFace, 这个 map 是全局的,如果确认后续一段时间不再使用,建议调用 PAGFont.UnregisterFont 及时清除这部分内存 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevingpqi123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果不再使用需要调用 PAGFont.UnregisterFont, PAGFont.RegisterFont 后内部会有一个 map 缓存 TypeFace, 这个 map 是全局的,如果确认后续一段时间不再使用,建议调用 PAGFont.UnregisterFont 及时清除这部分内存