How to snap to grid fonts?

Post questions on how to use or achieve an effect in Inkscape.
Spinningforthecause
Posts: 17
Joined: Thu Mar 17, 2011 2:11 am

How to snap to grid fonts?

Postby Spinningforthecause » Sat Aug 18, 2012 8:32 pm

Snap to grid'ing geometrical shapes is easy, but what about fonts?
How do I achieve the sharpest looking fonts?
Should I use text baseline to grid intersection?
Or for fonts snap to grid doesn't matter at all?


click to enlarge
Image

Ailurus
Posts: 115
Joined: Fri Oct 22, 2010 9:53 am
Location: The Netherlands
Contact:

Re: How to snap to grid fonts?

Postby Ailurus » Sat Aug 18, 2012 9:13 pm

Hi,

Are you having difficulties with creating a font yourself ("achieve the sharpest looking fonts"), or is it merely the aligning of some text with relation to an object? If I understand it correctly, your question is the latter one.

So then I would say your question becomes, how to change the position of the text w.r.t. the text baseline? Would changing the vertical shift of the characters help? You can do this either by selecting the character(s) and pressing Alt + ↑ or Alt + ↓, or change the vertical shift directly in the Font Toolbar.

Spinningforthecause
Posts: 17
Joined: Thu Mar 17, 2011 2:11 am

Re: How to snap to grid fonts?

Postby Spinningforthecause » Sat Aug 18, 2012 9:37 pm

Yes, aligning text. But not in relation to objects, but pixels. How do I snap fonts to grid?

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: How to snap to grid fonts?

Postby Maestral » Sat Aug 18, 2012 10:06 pm

While editable, text is treated as "a box" or as an object, so to say. This also includes kerning of the font and it usually adds some space around the font/text. To avoid that, convert the text into the path(s) and aligning/snapping would work just as it works with any other object. Bare in mind that conversion would disable editing of the text, so it`s not a bad idea to create a duplicate before conversion - in case you need to do some editing of the text later on.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to snap to grid fonts?

Postby brynn » Sun Aug 19, 2012 7:18 am

You'll notice that the text baseline handle is always at the base of the text, so that snapping to a grid intersection puts the text always on the horizontal grid line, in the same way as if you'd converted to path, and snapped node to grid -- so that the bottom of the text can be aligned to the horizontal grid line. Other parts of the text, besides the baseline, might not necessarily align to the grid, because of things like Maestral mentioned.

If you need everything aligned to pixels, you can use Extensions menu > Modify Path > Pixel Snap.


Return to “Help with using Inkscape”