V
V
Vyacheslav Slinko2013-01-07 23:09:43
Fonts
Vyacheslav Slinko, 2013-01-07 23:09:43

Why is svg font upside down?

Given: SVG file with element:

<path d="..." />


Converted the file to SVG font format:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg">
    <defs>
        <font id="somefont" horiz-adv-x="1000">
            <font-face font-family="somefont" units-per-em="1000"/>
            <glyph unicode="a" d="..."/>
        </font>
    </defs>
</svg>


The attribute dhas not changed, but the font is mirrored with respect to the x.
Why is this happening and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Slinko, 2013-01-09
@KeepYourMind

Unlike standard graphics in SVG, where the initial coordinate system has the y-axis pointing downward (see The initial coordinate system), the design grid for SVG fonts, along with the initial coordinate system for the glyphs, has the y-axis pointing upward for consistency with accepted industry practice for many popular font formats.

www.w3.org/TR/SVG/fonts.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question