提交 912cb013 编写于 作者: L lancer

Description: fix minority language font stuck

IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I4UE2Z
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: Nlancer <haoshuo@huawei.com>
上级 c01ff5b4
......@@ -282,10 +282,7 @@ uint8_t* UIFontBitmap::SearchInFont(uint32_t unicode, GlyphNode& glyphNode, uint
}
uint8_t* bitmap = bitmapCache_->GetBitmap(fontId, unicode);
if (bitmap != nullptr) {
GetGlyphNode(unicode, glyphNode);
const GlyphNode* node = nullptr;
node = dynamicFont_.GetGlyphNode(unicode);
if (node != nullptr && node->dataFlag == node->fontId && fontId == node->fontId) {
if (glyphNode.dataFlag == glyphNode.fontId && fontId == glyphNode.fontId) {
return bitmap;
} else {
GRAPHIC_LOGE("DataFlag of bitmap node not equal to fontId.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册