[Solved] Troubles with setting document size

Post questions on how to use or achieve an effect in Inkscape.
Torajio
Posts: 6
Joined: Tue Jun 14, 2011 12:28 am
Location: France

[Solved] Troubles with setting document size

Postby Torajio » Tue Oct 25, 2011 10:45 am

Hi !
I'm not new to Inkscape, so I'm a bit very confused by the problem I'm having right now. I'm actually creating a font from an alphabet I made up. I won't discuss why : the answer is "becawz !", since it's just useless as for now x) .
BUT that doesn't matter : I use InkScape to draw the various chars, and then import them in FontForge. But when it comes to isolating each char from the other so it can be imported, I just can't achieve having one char using the WHOLE sheet.

Better explanation : my document is set with dimensions 140x280px, where one char fits. Everything is fine in Inkscape, but the result anywhere else (FontForge, image viewer, browser, etc), my SVG sticks my beautiful letter on the top left corner and keep the size of the original map… I don't understand why… :s

Here is the char map from which I cut all the characters :
char map.svg
Chars map
(47.77 KiB) Downloaded 172 times

And here is the "A" character, where we can see the problem which occurs :
A.svg
Example : the "A" char isolated
(3.07 KiB) Downloaded 157 times


Thanks for reading and helping a lost soul like mine :) !
Last edited by Torajio on Fri Oct 28, 2011 7:56 pm, edited 1 time in total.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Troubles with setting document size

Postby ~suv » Tue Oct 25, 2011 12:04 pm

Torajio wrote:Better explanation : my document is set with dimensions 140x280px, where one char fits.
Don't reinvent the wheel and use the fontforge_glyph template which ships with Inkscape: it has a page size which corresponds to the glyph size used by default in fontforge. Attached SVG file has your 'b' from file 'A.svg' resized in a new file from the template (menu 'File > New > fontforge_glyph') - I used a page-sized rectangle in the original file to visualise/compare the position with regard to the font baseline.

Torajio-fontforge-screenshot.png
Original 'A.svg' (left) and resized based on 'fontforge_glyph' template (right) as imported in fontforge.
Torajio-fontforge-screenshot.png (75.81 KiB) Viewed 840 times
Torajio-A-in-fontforge_gyph-template.svg
(4.26 KiB) Downloaded 255 times

Torajio wrote:Everything is fine in Inkscape, but the result anywhere else (FontForge, image viewer, browser, etc), my SVG sticks my beautiful letter on the top left corner and keep the size of the original map…
I can't confirm that other SVG viewers "keep the size of the original map" while moving the path of the glyph to the upper left corner: you don't see the page borders in other renderers, but the displayed view area as well as the position of the glyph path is the same as inkscape.
With regard to importing the SVG file into fontforge: What you seem to neglect is the fact that the SVG file has its origin (0,0) in the upper left corner of the page (unlike the rulers in Inkscape's GUI), which is why fontforge imports it as it does (small, and dangling high above the default baseline) - apparently it anchors the SVG origin to the top-left corner of the default glyph size.

Torajio
Posts: 6
Joined: Tue Jun 14, 2011 12:28 am
Location: France

Re: Troubles with setting document size

Postby Torajio » Fri Oct 28, 2011 7:55 pm

Well, thank you for the answer, that was exactly what I needed. I didn't even know there was a FontForge template directly in InkScape… The power of opensource, I guess :D !
I may disappear now and create my font so everyone will be able to NOT understand what I write :) !


Return to “Help with using Inkscape”