Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Does any body know what is the current status of embedding fonts into an svg file that is readable by inkscape. I find the lack of embedded fonts severely impedes portability of svg files, particular if sending the file to a person who doesn't have admin access on their machine and cannot install fonts.
I tried to follow the instructions given at this link:
HOWTO: Embedding a font in a Linux Inkscape SVG document
but have been unable to get it to work, this link also suggests that it is possible:
https://answers.launchpad.net/inkscape/+question/83618
I, to be fair am trying to get this to work on windows, not linux (I don't have access to a linux machine right now). Does any one know of or have access to an actual svg file where this feature is working?
I think I have found a workaround for this.
If there isn't too much text in the SVG, you can select all the text objects and Path-> Object to Path, then you can no longer edit the text, but the resulting file can be correctly parsed by any viewer even if the font is not installed.
If there're lots texts, this operation may increase the size of SVG file.
I got and answer over at graphicdesign.stackexchange.com from user Paolo Gibellini:
In the current version of Inkscape seems not yet possible to embed SVG fonts (see also here a little example).
In 0.48 Release Notes:
There is a known limitation where the list of glyphs in the dialog are not yet rendered in the selected font, but still in the system font
In 0.47 Release Notes there is a more detailed explanation of the limitations:
As a SoC 2008 project, JucaBlues implemented initial parsing and rendering of SVG Fonts. You can design fonts within Inkscape, but using them to render text on the canvas is not yet supported. We are waiting for libpango to implement proper support of the user-fonts feature.
The render of SVG Fonts is not supported by Firefox or Internet Explorer, and Inkscape Wiki tell us that:
SVG2.0 may replace SVG fonts by WOFF
(let's wait and see)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 months ago.
Improve this question
I have a black and white logo as a PNG. Now, I need to use it in Inkspace to add some text and make an svg out of it. I had a satisfying result but turns out the logo has a white background.
I had a look at the svg code and found out the image wasn't represented as a path but as an <image>.
What i need is to transform the png image into a svg path. And make sure that there is no background. What is the easiest way to do that?
I'm not familiar at all with image manipualtion programs. I have GIMP and Inkscape installed. But i've almost never used them, so detailed steps would be appreciated.
You can use the Inkscape path tracing feature to convert it to vectors. Select your image and then select Path -> Trace Bitmap. This should automatically trace the image leaving you with a set of one or more paths.
Depending on your image, you may get mixed results. In that case you can use the path editing tools to cleanup the trace. Or use those tools to recreate the image manually from scratch.
First go to this website https://www.remove.bg/upload
To remove the background after saving the image, go to Inkscape, fill bounded areas, choose the desired color and change the color of the image, then you will have an svg image
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
The output of my program will be some 2D drawings, with primitives like drawCircle, fillRect, and so on. Originally, I planned to draw it with Matlab or Java, but then I would have to provide options for zooming, printing, editing and so on by myself.
So I think it would be a good idea to just output the graphics into a standard vector graphics format and then open it with an existing viewer.
Which format could be a good choice? I will need 2D drawings, maybe I'd like to extend to 3D later on.
Two easy options for 2D vector graphics are PostScript and SVG.
PostScript is probably easier to output and you can have an external header that implements your primitives on top of PostScript primitives, which will give you flexibility. But you'll need to use a PostScript viewer or to convert the output to PDF (some PDF viewers can display PostScript).
SVG is a little more complicated to output because of its syntax, but still not hard. The main advantage of SVG is that all major browsers can display SVG. Another advantage of SVG is that you can have transparency, which PostScript does not support. On the other hand, you'll have to map your primitives to SVG primitives; there is no programmability in SVG.
PDF does support transparency but is not easy to generate by hand; you'll have to use a library.
In Windows, I still use old Windows (Enhanced) Metafile .emf.
It is easy, supported in Delphi and Visual Studio, but I don't know if it's supported in Linux world.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
After I have created a plot in Excel , is there a way to export the plot to SVG while retaining the explicit characters and vector strokes. (I do not want to have to capture the screen and export).
UPDATE: I do not want to export in some complex and potentially lossy format such as PDF or Word. The graphics strokes are there in PDF, I just want to get them out. Also I don't want to dump as CSV and replot using some other tool.
I think you have set yourself a very difficult task.
If you copy a plot area to the clipboard and look at the formats available with Application.ClipboardFormats, the only vector format offered is PICT. Perhaps this could be an avenue to investigate...
If you 'Print to PDF' you should be able to convert it to SVG-format. There's several converters online, I would use Adobe Illustrator though.
Copy it as a plot into powerpoint. Save in powerpoint as a emf. Open the emf in e.g. inkscape, then save as svg. Vectors are preserved.
2020 Update
This is now easily possible manually
Just right-click the chart and select "Save as Graphic" where you have the option to save as .svg.
Solution for VBA
Unfortunately, this relatively new feature is not yet supported by the object model. Chart.Export fileName:="MyChart", FilterName:="SVG" will result in an empty file as of now. Therefore, exporting with VBA is still very difficult and only possible by automating the "manual" method. I created a solution that is doing exactly that and tried to make it easy to implement in other code. For the full solution, check out this answer.
Save to PDF and operate it with InkScape which is totally free and sharing similar function to Illustrator.
Solution is simple, just copy and paste the plot to Inkscape. It keeps original size and all shapes are vectorized.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
If you take screen shot this web page in different browser, you'd see that it displays slightly different in firefox. (7.01, ubuntu)
At first I thought it was because of color profile, but even if I turned on color management in firefox, the problem is still there.
Although it's not a very noticeable problem, I got a perfectionist boss who asked to make it look exactly the same in every browser. Does any one know what might have caused the problem? Thanks!
A screenshot of comparison : You might still not be able to see the difference, but if you download the screen shot and use an image editor to check the color in 2 browsers, you'd see there's indeed differences.
Apparently this does have to do with color management but I'm not sure what needs to be turned on where. Here is one of a few articles I found that goes into this that I hope is helpful.
Is the gamma correction. PNG format has an option to store a gamma correction value, so the image will look the same in monitors with different gamma correction.
The problem is that some browsers use this information an others don't.
The following image has gamma correction on, and will look the same in every browser, but it can give you problems in firefox if you want the image color to match html and css colors:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Examotion has a player that can display the image for svg files as a preview in Windows Explorer. Their product is free, but closed source. I believe that it also only works with files that actually end in .svg. I have a need for a similar product that works with files also ending in some other extensions.
Is there an OSS solution that could be modified to suit this need?
The mentioned examotion renesis player seems to be the only free explorer extension! It seems to be stable, has good reviews and is working for me (the tiger svg you posted is working as well - maybe that's a different problem with your system).
If support for further extensions is the only problem, I would simply patch your windows registry.
Under
HKEY_CURRENT_USER\Software\Classes
there are entries for .svg and .svgz which declare to use the renesisplayer for thumbnail preview in explorer. you can simply add another key here like .mysvg similar to the existing keys.
Otherwise there are only commercial products like cadsofttools which has a svg plugin for irfanview and xnview.
You could try this one as well. It doesn't support the full SVG specification but at least it works. :)
http://code.google.com/p/svg-explorer-extension/