|
Post by concreterick on Nov 8, 2016 14:41:46 GMT -5
Dear all,
I have a little program that outputs glyph contours in SVG. This destination format is .TTF.
But there's something wrong. For example the following is supposed to draw a v. shallow upside M. The feet should be on the baseline and all the rest should be below the baseline. All the Y values below are zero or less than zero.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" width="2048" height="2048" version="1.1" > <path d="M 100 0 L 100 -400 L 1948 -400 L 1948 0 L 1848 0 L 1848 -300 L 1074 -300 L 1074 0 L 974 0 L 974 -300 L 200 -300 L 200 0" stroke-linecap="round" stroke-width="0.000000pt" stroke="rgb(0,0,0) device-cmyk(0, 0, 0, 1)" fill="rgb(0,0,0) device-cmyk(0, 0, 0, 1)" opacity="1" stroke-dasharray="none" /> </svg>
When the above is imported into Type 3.2 (trial version), the outline is upside down and far above the baseline.
If anyone has any suggestions about what's I'm doing wrong, or what adjustments should be made to the above so that the outline lands in the right location, I'd be truly grateful.
/Rick
|
|
|
Post by Allan Murray on Nov 8, 2016 21:54:20 GMT -5
When I import your svg into Illustrator and InkScape I get the same result as Type 3.2.
With SVG's the Y axis is positive in the down direction and negative is in the up direction. This is the opposite to fonts, so you need to flip the y axis.
|
|
|
Post by concreterick on Nov 9, 2016 9:10:09 GMT -5
Apologies. My silly mistake. Thank you for your quick help. Flipping the Y values produces the correct outline, as you said.
With appreciation & regards, Rick
|
|