提交 52c86f4d 编写于 作者: L lancer 提交者: 郝烁

fixed 612faab8 from https://gitee.com/shengu_lancer/graphic_ui/pulls/891

Description: fix emoji linebreak
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6FK29
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: Nlancer <haoshuo@huawei.com>
上级 8e044ab8
......@@ -194,6 +194,9 @@ int16_t UILineBreakEngine::GetLetterWidth(uint32_t unicode, uint16_t& letterInde
bool UILineBreakEngine::IsBreakPos(uint32_t unicode, uint16_t fontId, uint8_t fontSize, int32_t& state)
{
if (TypedText::IsEmoji(unicode)) {
return true;
}
if ((unicode > TypedText::MAX_UINT16_HIGH_SCOPE) || (stateTbl_ == nullptr) || (lineBreakTrie_ == nullptr)) {
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册