xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dieter <dieter.krach...@googlemail.com>
Subject Re: Converting Font to SVG: all glyphs are rotated
Date Tue, 14 Jun 2011 16:21:12 GMT
yep...I meant flipped vertically or rotated 180 and flipped horizontally ;)

Do you have a link where it is described that "SVG coordinates are
upside down wrt cartesian" and the reasons why this was done?

Cheers,
Dieter

On Tue, Jun 14, 2011 at 6:14 PM, Martin Jacobson
<jacobson.martin@gmail.com> wrote:
> I haven't had time to verify your example, but I suspect you'll find
> that the fonts aren't rotated 180º, but flipped vertically; don't
> forget that SVG coordinates are upside down wrt cartesian. This annoys
> me on a regular basis!
>
> Martin
>
> On 14 June 2011 16:56, Dieter <dieter.krachtus@googlemail.com> wrote:
>> Hi,
>>
>> I just converted several fonts to SVG. When I extract the d="" element
>> from several glyphs and insert them in a SVG document I notice that
>> all glyphs are rotated clockwise by 180 degrees. Here is an example
>> for the glyph "7":
>>
>> <?xml version="1.0" standalone="no"?>
>> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>> <svg xmlns="http://www.w3.org/2000/svg">
>>  <path d="M219 -2Q194 0 162 0Q130 0 92 -4Q122 44 157 105T229 237T304
>> 387T376 550Q359 551 342 551Q325 551 306 551Q242 551 175 548T36 537Q38
>> 582 29 628Q155 623 269 623Q384 623 490 629Q496 569 492
>> 541Q466 509 440 466T388 374T338 273T292 172T252 77T219 -2Z"
>>        fill="green" stroke="blue" stroke-width="3" />
>> </svg>
>>
>>
>> Is this normal? Why are the glyphs rotated?
>>
>> Cheers,
>> Dieter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>
>>
>
>
>
> --
> From my MacBook Pro
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

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


Mime
View raw message