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

Text is hidden after scaled a element #283

Open
deckerst opened this issue May 13, 2024 · 0 comments
Open

Text is hidden after scaled a element #283

deckerst opened this issue May 13, 2024 · 0 comments

Comments

@deckerst
Copy link

Describe the bug
In a specific complex SVG all the text was hidden, and I trimmed it down to a minimum sample showing the issue. It does not seem to be related to any advanced or rare feature. Just a sequence of tags that somehow hide the text.

To Reproduce
Render the samples below with AndroidSVG.

Expected behavior
The text should be visible, as rendered by typical SVG viewers.

Stack traces
I don't see any reported errors.

SVG file

  1. Here's a sample where the text is mistakenly hidden when rendered with AndroidSVG
    #1011_text_after_a_scaled_30_nok
   <g transform="scale(30,30)"><a /></g>
   <text x="100" y="100">Sample Text</text>
  1. And the same sample slightly tweaked, where the text is visible (as it should) when rendered with AndroidSVG
    #1011_text_after_a_scaled_01_ok
   <g transform="scale(1,1)"><a /></g>
   <text x="100" y="100">Sample Text</text>

Device
It was reported to me from an unknown device, and I can reproduce the issue on a Samsung S10e with Android 12.

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

1 participant