White font turns to black when opening a SVG in Inkscape v1.2 - svg

So I have this magical SVG from my school on my github.
When I preview it on Github, it has a white font. When I open it in Inkscape v0.92, it has a white font.
However, when I try to open it in Inkscape v1.2, it has a black font.
I suspect the SVG might be malformed somehow, but I read the file and it seemed normal to me so I cannot figure it out.

Related

why does gnome automatically fills the symbolic icons in files

I try to design some icons for gnome (symbolic icons) but the problem is that gnome files make them completely black(it fills the transparent areas in the icons)
how i can solve this problem
Use SVG or PNG for the image file of the icon.
https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
Some other image formats don't support transparent white space. I recommend testing your icons in an image viewer that supports white space. If you get a similar effect, mind this is not in the editing program so what your seeing in the image decoding library making sense of the image, then you should try to change image format to a different format that supports transparent white space. If you are using Gnome, Eye of Gnome, the default image viewer, should show a gray checkered pattern where there is white space.

disabling text kerning in fabricJs

I have fonts with kerning, which is working great with SVG and fabricJs. but when i am importing SVG to tcpdf kerning lost. so i want to disable kerning in fabricJs. so font will match with pdf output.
Is there any way to do like this?

Why doesn't librsvg doesn't export the black paths in a PNG?

Here is an SVG image I want to convert to PNG with librsvg in my program.
This is a PNG version of the SVG exported from Inkscape:
This is a bitmap of the same SVG exported with librsvg:
Only the white portions of the image are exported. The black portions, despite being well-defined in the background, appear transparent.
This problem occurs whether I use the librsvg API or the program rsvg-convert. You can use the W3 validator to see that the SVG's markup is valid.
I notice the same thing happens in the thumbnails of the SVGs in my file browser. Perhaps they're using librsvg?
Upon digging into the files I discovered that, for some reason, the fill of the black portion was set to "fill:currentColor". I don't know where that came from, but changing it to "fill:#000000" fixed the problem.

How to flatten SVG files

There is this site http://game-icons.net/ that offers huge number of open source icons. That is 1345 SVG files to this day. I would love to use them with a web project I am working on right now. The logical step is to transform them into an icon font. Normally, I would just upload them to https://icomoon.io/app/#/select/font and voila ... but!
The icons are inverse, white symbols on a black rectangle. I can invert colors in Illustrator, but some of the icons have overlaping shapes and this breaks them when icomoon tries to make them Black-transparent.
Example: http://game-icons.net/lorc/originals/archery-target.html
The circles are white, not transparent.
How to flatten a Black-White SVG file with overlaping shapes into an icomoon friendly Black-transparent SVG?
My wish is to make the font open source as well and send it back to the site admins for everybody to enjoy.
At the moment the icons have layers of black and white paths. You are going to need to use the "merge paths" feature of Illustrator or Inkscape to make the white (or black) paths into holes where appropriate. I think this is pretty much going to be a manual task. You could write a script to help with some of the work, but I suspect you would end up needing to fix a large number of the icons afterward anyway.

OpenModelica svg icon for blocks

The svg icon of a block is not displayed. Here's how I set it:
I switch to Icon view
Click on Bitmap
Draw a rectangle
In Bitmap properties I select the svg file through Browse (the option for svgs exists). The svg file is in the same folder as the .mo file.
Click Ok and the svg icon is not displayed - I get nothing (like a white icon - I can only see the corners of the bitmap rectangle). The svg file was created in Inkscape and saved as Plain svg.
Is this svg icon option not implemented yet but will be in the near future? or am I doing something wrong?
The svg option was there by mistake. The supported formats for bitmap are PNG, BMP and JPEG. I have fixed it now in r18662.
Adeel.

Resources