xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: CSS property not recognized
Date Mon, 11 Jan 2010 15:29:20 GMT

I think that text-align is not a valid SVG property.
The right property is text-anchor, witch is yet in your CSS style.

FYI, text-anchor can get one of the following values: start | middle | 
end | inherit <http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit>


pyonpyon a écrit :
> Hi !
> First, I'm sorry if I'm doing this wrong I'm not used to this kind of 
> support (and also if my English is not good :p).
> I want to generate an image from an SVG source but I have this error :
>     The attribute "style" represents an invalid CSS declaration
>     ("font-size:48.71988678px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;font-family:JaneAusten;-inkscape-font-specification:JaneAusten").
>     Original message:
>     The "center" identifier is not a valid value for the "text-align"
>     property.
> I have a success message after but the render is not as expected (a 
> part of the image is white instead of black).
> If I replace all the "text-align:center" by "text-align:middle", it works.
> The SVG image is created by Inkscape (under Mac OS), with a "SVG 
> Simple" format (I think this is the french version, but I suppose it 
> is the same in English).
> Is there something I'm doing wrong ?
> Thanks in advance !
> Aline

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message