Changing font family, and -inkscape-font-specification
Hello,
I came across this in a file that someone sent me. It was generated by Inkscape 0.47 r22583.
The font-family property is set on a text element, while child tspan elements have -inkscape-font-specification set to the full font name, but the font-family has not been set even though it has changed. Inkscape should have written font-family: Bitstream Charter.
SVG viewers are therefore (correctly) not applying Bitstream Charter, in this example. And the content creator thinks that SVG viewers have 'font issues' as they don't display what was designed.
Is this a known bug?
SVG snippet:
<text xml:space="preserve" style="font-size:40px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans" x="437" y="202" id="text3695"><tspan sodipodi:role="line" id="tspan3697" x="437" y="202" style="font-size:28px;font-weight:bold;-inkscape-font-specification:Bitstream Charter Bold">Semantic</tspan><tspan sodipodi:role="line" x="437" y="237" id="tspan3699" style="font-size:28px;font-weight:bold;-inkscape-font-specification:Bitstream Charter Bold">Web</tspan><tspan sodipodi:role="line" x="437" y="272" id="tspan3701" style="font-size:28px;font-weight:bold;-inkscape-font-specification:Bitstream Charter Bold">Technologies</tspan></text>
On Wed, Jun 9, 2010 at 1:53 PM, Chris Lilley <chris@...157...> wrote:
SVG viewers are therefore (correctly) not applying Bitstream Charter, in this example. And the content creator thinks that SVG viewers have 'font issues' as they don't display what was designed.
Is this a known bug?
It would certainly be a bug if we knew how to reproduce it in Inkscape.
I have just tested the latest build and I cannot reproduce this. When I create a text object in Vera Sans, and then select part or all of it and assign Bitstream Charter and then make it bold (or vice versa), the tspan inside the text gets both -inkscape-font-specification:Bitstream Charter Bold and font-family:Bitstream Charter as well as font-weight:bold.
So, I don't know how this SVG fragment was created. It might be manually edited, for all we know :)
Or maybe this bug existed in 0.47 but got fixed since (I don't have 0.47 to test now).
participants (2)
-
bulia byak
-
Chris Lilley