Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

鸿蒙端pag sdk, PAGFile replaceText时, 数字及一些特殊字符文案替换后出现样式发生不合预期的变化 #2514

Open
Yang-Libing opened this issue Oct 8, 2024 · 0 comments
Assignees

Comments

@Yang-Libing
Copy link

【版本信息】

v4.4.4

【平台信息】

鸿蒙平台

【预期的表现】

image

如上图所示,调用PAGFile的replaceText方法替换文本文案,只替换文字内容,文字的格式,位置等信息均不修改.预期的样式类似于下图所示:

image

【实际的情况】

实际替换效果如下:
image

可以看到,中文文案内容和展示样式符合预期,但数字的颜色和字体发生了变化(而替换text时并未修改文案的展示样式).
经测试,还有一些其他的特殊字符,如‘#’等也会出现类似样式变化的问题.
这个问题在鸿蒙测试机上测试必现,应该可以快速复现(用数字测试replaceText),辛苦看下是什么原因.

【Demo及附件】

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants