improve font_manager_get_font

This commit is contained in:
lixianjing 2021-11-01 15:55:20 +08:00
parent 4d04a596ee
commit b7284691fa
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2021/11/01
* 修复agge编译缺失的问题感谢智明提供补丁
* 修复当字库名字超过32后导致不断添加新类库的问题感谢智明提供补丁
2021/10/30
* 完善RTT mutex封装。

View File

@ -169,6 +169,7 @@ font_t* font_manager_get_font(font_manager_t* fm, const char* name, font_size_t
font_t* font = NULL;
const char* default_font = system_info()->default_font;
name = system_info_fix_font_name(name);
name = asset_info_get_formatted_name(name);
return_value_if_fail(fm != NULL, NULL);
font = font_manager_lookup(fm, name, size);