mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
improve font_manager_get_font
This commit is contained in:
parent
4d04a596ee
commit
b7284691fa
@ -2,6 +2,7 @@
|
||||
|
||||
2021/11/01
|
||||
* 修复agge编译缺失的问题(感谢智明提供补丁)。
|
||||
* 修复当字库名字超过32后导致不断添加新类库的问题(感谢智明提供补丁)。
|
||||
|
||||
2021/10/30
|
||||
* 完善RTT mutex封装。
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user