Center a character in svg -
I am looking to create a SVG file containing a single askie character ('g' or 'w') It will be closest to the centrifugal font centered within a 100 x 100 window, but it is not perfect ... & lt ;? Xml version = "1.0" standalone = "no"? & Gt; & Lt ;! DOCTYPE svg PUBLIC "- // W3C / DTD SVG 1.1 / n" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> & Lt; Svg viewbox = "0 100 100" xmlns = "http://www.w3.org/2000/svg" version = "1.1" & gt; & Lt; Text x = "50" y = "50" font-size = "100px" text-anchor = "middle" alignment-baseline = "medium" & gt; G & lt; / Text & gt; & Lt; / Svg & gt; SVG does not have automatic vertical layout capabilities; You need something else to calculate the height of the box, such as Javascript or ... It seems that you are embedting it inside a web browser, if so, you can...