inkscape

python lxml inkscape namespace tags

≯℡__Kan透↙ 提交于 2020-01-02 05:57:56
问题 I am generating an SVG file that's intended to include Inkscape-specific tags. For example, inkscape:label and inkscape:groupmode . I am using lxml etree as my parser/generator. I'd like to add the label and groupmode tags to the following instance: layer = etree.SubElement(svg_instance, 'g', id="layer-id") My question is how do I achieve that in order to get the correct output form in the SVG, for example: <g inkscape:groupmode="layer" id="layer-id" inkscape:label="layer-label"> 回答1: First,

Creating a cross browser icon webfont

心已入冬 提交于 2020-01-01 01:30:09
问题 I have been making my own webfont taking as a starting point articles from web designer depot and intridea. I know different engines render fonts differently and but the issue I'm having is that firefox renders the font higher than chrome - at the size I am displaying the font this is very noticeable (3 or 4 px - which on a button means they're totally misaligned). I have also referenced Github's octicon documentation - when checking out how octicons compare browser they look great! No

Transparency vs. White background in Inkscape [closed]

我与影子孤独终老i 提交于 2019-12-31 10:07:07
问题 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 7 years ago . I am using Inkscape and I know how to use transparency within the image, but I am annoyed that the background of the workspace in Inkscape is white. I searched through a lot of settings, but had no luck. How do I get the workspace checkered like in GIMP? The white workspace is really bothersome if you design

D3: Select and alter external SVG?

一笑奈何 提交于 2019-12-29 07:51:33
问题 Is it possible to select and alter elements in an embedded (external) SVG , created in Adobe Illustrator? html: <object data="circles.svg" type="image/svg+xml" id="circles"></object> circles.svg: <svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" > <circle id="c_red" fill="#A00" stroke="#000" cx="40" cy="40" r="40"/> <circle id="c_grn" fill="#0A0" stroke="#000" cx="60" cy="60" r="40"/> </svg> d3 code: <script> var my_circles = d3.select("#circles svg").selectAll("circles");

Problems converting VML to SVG in .NET

痴心易碎 提交于 2019-12-25 03:58:08
问题 I have a very similar problem as this post; I'm using RaphaelJS to generate a chart, but more specifically in my case I need to print the result. I have used Inkscape's command line utility (it's excellent) to convert Raphael's SVG output to a PNG file, which the user can download and print. The problem is, it works in Firefox etc. but not Internet Explorer. Because IE uses VML, not SVG, Inkscape won't convert it when the user is coming from IE. I have had a look at IECapt which might well

Rstudio pdf export imported in Inkscape [duplicate]

孤街醉人 提交于 2019-12-24 17:47:59
问题 This question already has an answer here : Why doesn't Inkscape correctly read PDF files generated by R? (1 answer) Closed 3 years ago . I'm trying to export pdf of ggplot-generated figures for post-processing in Inkscape using various methods: ggsave(), pdf(), dev.copy2pdf() and Rstudio export via GUI (3x3 size). library(ggplot2) df <- data.frame(x = seq(1,10,1), y = seq(1,10,1), y.err = rep(1,10)) p<- ggplot(df, aes(x = x, y = y))+ geom_errorbar(aes(ymin = y - y.err, ymax = y + y.err))+

Stretch text in inkscape, but then wrap it to a path [closed]

廉价感情. 提交于 2019-12-24 16:07:47
问题 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 7 years ago . I've got a short piece of text, and I want to stretch it out vertically, and then wrap it round a path. I can stretch the text, but when I wrap it to the path it jumps back to its default size. Before: After: (Stretching vertically after assigning to the path does not apply the stretch to each glyph consistently

d3.select on inkscape:label=“foo”

你。 提交于 2019-12-24 07:45:01
问题 I'm trying to select a layer by its inkscape:label property to be able to show/hide the layer on a website. function hideFOO() { if(d3.select("#hideFOO:checked").node()){ d3.select("#layer11").attr("visibility", "hidden"); } else { d3.select("#layer11").attr("visibility", "visible"); } } The SVG is; <g inkscape:groupmode="layer" id="layer11" inkscape:label="foo" style="display:inline"> ... That works just fine - but I'd like to be able to specify the inkscape:label as the layer ID's are not

Inkscape .91 with latex

别说谁变了你拦得住时间么 提交于 2019-12-23 17:43:49
问题 I am using Inkscape 0.91 and trying to add Latex math formula inside my graphics. After several hours of tying and fixes from the I am still not able make it work. I am on Windows 7 with the following, 1) pstoedit (pstoeditsetup_win32.exe) 2) GSview 5.0 (gsv50w32.exe) 3) Ghostscript 9.18 (gs918w32.exe) 4) miktex 2.59 64 bit version I have added the PATHs and did all the stuff. I can see the Latex extension as well but whenever I try to use it I face the following error: "Problem during

How can I make text automatically scale down in an SVG?

谁都会走 提交于 2019-12-23 02:55:17
问题 I've got an SVG element that I've created with Inkscape. I then take that SVG and put in as part of an XSL-FO stylesheet that is used to transform XML data and then passed through the IBEX renderer to create a pdf (which is usually then printed). As an example, I have elements in the svg/stylesheet that look like this (extra noise due to the Inkscape export): <text x="114" x="278.36218" id="id1" xml:space="preserve" style="big-long-style-string-from-inkscape"> <tspan x="114" y="278.36218" id=