提交 10ef066e 编写于 作者: O openharmony_ci 提交者: Gitee

!265 弧形文本间隔不均匀问题

Merge pull request !265 from wangtiantian/math_r
......@@ -137,8 +137,8 @@ float TypedText::GetAngleForArcLen(float len,
void TypedText::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, float& posY)
{
posX = arcCenter.x + (static_cast<float>(radius) * Sin(MATH_ROUND(angle)));
posY = arcCenter.y - (static_cast<float>(radius) * Sin(MATH_ROUND(angle + QUARTER_IN_DEGREE)));
posX = arcCenter.x + (static_cast<float>(radius) * Sin(angle));
posY = arcCenter.y - (static_cast<float>(radius) * Sin(angle + QUARTER_IN_DEGREE));
}
uint32_t TypedText::GetNextLine(const char* text, int16_t letterSpace, int16_t maxWidth)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册