You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in TextMetrics.wordWrap method, it process my text into few lines, but somehow it adds extra useless blank to the head of the line, see the pics below:
and this is the lines processed by TextMetrics.wordWrap: http://jc-space.com/processedLines.jpg
as you can see, there are useless blank ahead of the lines
1, text align does not work while it's being moving.
2, TextMetrics.wordWrap from official code adds extra useless blank to the head of the first text line, see issue: pixijs/pixijs#4251, and this is the hot fix for it. I've pushed this patch to the official Guithub as a pull-request already, once they merge it, I'll clear my code again.
fix bug for GTextInput.ts
1, text align does not work.
in TextMetrics.wordWrap method, it process my text into few lines, but somehow it adds extra useless blank to the head of the line, see the pics below:
this is my original text: 缩放支持三种模式:直接\n缩\n放/九宫格/平铺。在库里右击图片,然后点击菜单中的编辑,可以打开图片属性
http://jc-space.com/originalText.jpg
and this is the lines processed by TextMetrics.wordWrap:
http://jc-space.com/processedLines.jpg
as you can see, there are useless blank ahead of the lines
and this is the finaly result rendered which is incorrect:
http://jc-space.com/finalResult.jpg
The text was updated successfully, but these errors were encountered: