提交 30dd98bb 编写于 作者: W wangtiantian 提交者: Gitee

IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I3YWW4

Description:fix bug
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wangtiantian19@huawei.com>
上级 33a3c899
......@@ -28,7 +28,7 @@
#endif
namespace OHOS {
UIFontBitmap::UIFontBitmap() : dynamicFont_(), dynamicFontRamUsed_(0), dynamicFontFd_(-1), offset_(0)
UIFontBitmap::UIFontBitmap() : offset_(0), dynamicFont_(), dynamicFontRamUsed_(0), dynamicFontFd_(-1)
{
SetBaseFontId(UIFontBuilder::GetInstance()->GetBitmapFontIdMax());
bitmapCache_ = nullptr;
......
......@@ -53,6 +53,7 @@ protected:
void PutCacheSpace(uint8_t* addr);
int8_t SetDynamicFontId(uint8_t fontId);
int16_t GetDynamicFontWidth(uint32_t unicode, uint8_t fontId);
uint32_t offset_;
private:
uint8_t* SearchInFont(uint32_t unicode, GlyphNode& glyphNode, uint8_t fontId);
......@@ -66,7 +67,6 @@ private:
uint32_t bitmapRamUsed_;
UIFontCache* bitmapCache_;
int32_t dynamicFontFd_;
uint32_t offset_;
};
} // namespce OHOS
#endif // UI_FONT_BITMAP_H
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册