提交 71d95beb 编写于 作者: O openharmony_ci 提交者: Gitee

!167 多语言设置searchList失效,出现部分字体不显示问题

Merge pull request !167 from wangtiantian/bug_master
......@@ -68,6 +68,7 @@ uint8_t* UIFont::GetBitmap(uint32_t unicode, GlyphNode& glyphNode, uint8_t shapi
// shaping font is in search list, search shaping font first
if (shapingFont > 1) {
bitmap = instance_->GetBitmap(unicode, glyphNode, shapingFont);
SetCurrentFontId(currentFontId);
if (bitmap != nullptr) {
return bitmap;
}
......@@ -106,6 +107,7 @@ uint16_t UIFont::GetWidth(uint32_t unicode, uint8_t shapingId)
#if ENABLE_MULTI_FONT
if (shapingId > 1) {
result = instance_->GetWidth(unicode, shapingId);
SetCurrentFontId(currentFontId);
if (result >= 0) {
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册