未验证 提交 2fbff43b 编写于 作者: O openharmony_ci 提交者: Gitee

!601 修复小语种语言卡顿问题同步到主线

Merge pull request !601 from 郝烁/cherry-pick-1645450012
......@@ -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.
先完成此消息的编辑!
想要评论请 注册