提交 e8da8c00 编写于 作者: W wangtiantian 提交者: Gitee

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

Description:fix bug
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wangtiantian19@huawei.com>
上级 e3846aeb
......@@ -242,6 +242,9 @@ void Text::Draw(BufferInfo& gfxDstBuffer,
return;
}
int16_t nextLine = pos.y + lineHeight;
if (lineHeight != style.lineHeight_) {
nextLine -= style.lineSpace_;
}
if (nextLine >= mask.GetTop()) {
pos.x = LineStartPos(coords, textLine_[i].linePixelWidth);
LabelLineInfo labelLine{pos, offset, mask, lineHeight, textLine_[i].lineBytes,
......@@ -254,7 +257,7 @@ void Text::Draw(BufferInfo& gfxDstBuffer,
}
}
lineBegin += textLine_[i].lineBytes;
pos.y = nextLine;
pos.y += lineHeight;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册