lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Support baseline-shift and font-style attributes #443

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Use any example on this page: http://www.svgbasics.com/font_effects_italic.html

What is the expected output? What do you see instead?

I expect tspan elements (e.g. superscript), to stay within the text on the
specified character location, but it falls back to the same y-position as
the parent text element. So instead of:
e=mc² 
it will be rendered as:
layer1: e=mc
layer2: ²
the superscript '2' fall on top (or below) the 'e'.

What version of the product are you using? On what operating system,
browser, and version of Flash?

OS: Windows XP SP2
Browser: Firefox 3.5
Flash: 10.0.42.34
svgweb: r984

Please provide any additional information below. Reduced test cases are
always appreciated!

Original issue reported on code.google.com by thijs.ro...@gmail.com on 12 Jan 2010 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 13 Jan 2010 at 5:14

GoogleCodeExporter commented 8 years ago
tspan is supported by svgweb but the attributes baseline-shift and font-style 
are
not.  So, font-style="oblique" or "italic" will do nothing, and 
baseline-shift="sub"
or "super" will do nothing (Firefox 3.5.2 doesn't support baseline-shift).

When using flash rendering, the incorrect (x) positioning of the superscript 
'2' (and
most of the other text in the superscript/subscript example), is because each 
tspan
(without an x,y attribute) is incorrectly placed at the x,y of the parent text
container element.  The same reason that the example in Issue 439 fails.

Original comment by k...@svgmaker.com on 13 Jan 2010 at 8:11

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 9 Apr 2010 at 2:43

GoogleCodeExporter commented 8 years ago
it seems that the dx and dy attributes on tspan are also not supported, which 
is unfortunate because multi-line text greatly profits from specifying "dy".

Original comment by mneu...@gmail.com on 2 Oct 2010 at 3:54

GoogleCodeExporter commented 8 years ago
Any idea when the font-style attribut will be fix for flash rendering?

Original comment by christel...@gmail.com on 3 Oct 2011 at 9:23