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

请假字体加载问题 #849

Open
ytchw101 opened this issue Aug 3, 2023 · 1 comment
Open

请假字体加载问题 #849

ytchw101 opened this issue Aug 3, 2023 · 1 comment

Comments

@ytchw101
Copy link

ytchw101 commented Aug 3, 2023

加载外部矢量字体,以前(使用的awtk源码是2020年6月的)在嵌入式平台使用 asset_info_t* iter = assets_manager_load(assets_manager(), ASSET_TYPE_FONT, font_name); 加载字体时,会在asset_info_create 中申请 字体大小 + sizeof(asset_info_t)内存 。 字体使用完后我会font_manager_unload_font 释放字体资源 目前工程使用完全没问题。

换成在Linux平台(用最新awtk源码),使用assets_manager_load 加载字体 时申请空间很小, 是不需要加载到内存, 直接对矢量字体进行解析了吗》? 如果是这样那我就没必要再 加载 和释放字体咯

@xianjimli
Copy link
Member

linux平台现在支持mmap加载,应该快些

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

2 participants