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
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.
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: