ejoy / ejoy2d

A 2D Graphics Engine for Mobile Game
MIT License
1.98k stars 643 forks source link

font context release #77

Closed zhoukk closed 9 years ago

cloudwu commented 9 years ago

call font_release in char_size may be better ?

https://github.com/ejoy/ejoy2d/commit/69971bc7c28cc1850f72c269fda3c9f29224950e

zhoukk commented 9 years ago

这里为什么不用个全局的font_context ,多次创建和释放是为了动态改变字体吗?

cloudwu commented 9 years ago

这个函数是供具体平台实现填的, 所以你在为平台实现的时候可以按任意的想法来. 如果写死了全局, 就有需要保持状态了.

zhoukk commented 9 years ago

学习了