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

Add stroke attribute to avoid fingering becoming invisible in text editing software with another color #8

Open
fxpar opened this issue Aug 3, 2024 · 0 comments

Comments

@fxpar
Copy link

fxpar commented Aug 3, 2024

Problem:
Text becomes invisible when svg is included in a text editing document and the color of the image is changed.
Explanation:
In Powerpoint or Word, it is easy to change the color of the svg with the image > color tool.. Unfortunately this tool applies the color to all the "fill" attributes. Therefore the color of the text receives the same color as the background of the bubble or the diamond.

Solution:
Specification of svg provide a secondary attribute for colore: stroke.
If we add this argument, the color of the text remains the same even if the fill color is changed in a text editing software.

Example
Original: bubble fill black; text fill white; and for some text, added stroke="FFFF00" (yellow)
When the image color is changed in powerpoint to purple, the text becomes purple on purple except where the stroke attribute was set to yellow.

image

Of course, the text color won't be able to change in a text editing software, same as before. But at least we can modify some background colors as long as the chosen color is still readable on that background.

Cheers.

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