From 031aa83d24c868d86141ed4cee0e885b5441e910 Mon Sep 17 00:00:00 2001 From: lancer <591320480@qq.com> Date: Sat, 19 Feb 2022 17:37:23 +0800 Subject: [PATCH] fixed 912cb01 from https://gitee.com/shengu_lancer/graphic_ui/pulls/599 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: lancer --- frameworks/font/ui_font_bitmap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frameworks/font/ui_font_bitmap.cpp b/frameworks/font/ui_font_bitmap.cpp index 66b40ed..656f43a 100644 --- a/frameworks/font/ui_font_bitmap.cpp +++ b/frameworks/font/ui_font_bitmap.cpp @@ -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."); -- GitLab