Font kernel

Post questions on how to use or achieve an effect in Inkscape.
tmelorc1
Posts: 5
Joined: Thu Jan 12, 2017 3:27 am

Font kernel

Postby tmelorc1 » Thu Jan 12, 2017 3:32 am

I am using Inkscape 0.91 r13725 on Linux Mint 18.

I would like to change the horizontal/vertical kernel of some font characters. But the kernel box on toolbar only allows px values.

How to do a kernel of -0.125em for example? Or in pt?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Font kernel

Postby Moini » Thu Jan 12, 2017 6:35 am

You can enter equations into the number field, e.g. to convert your pt value, type: "your_value_in_pt * 1,25".

Inkscape 0.91 uses a resolution of 90 dpi (90 px per inch).
This is a list of all the relations for Inkscape 0.91 (note: In Inkscape 0.92, 96dpi is used!):

'in':90.0, 'pt':1.25, 'px':1.0, 'mm':3.5433070866, 'cm':35.433070866, 'm':3543.3070866, 'km':3543307.0866, 'pc':15.0, 'yd':3240.0 , 'ft':1080.0

For the relative unit em, you'll need to insert the font size/m-height in px, then multiply by the em value.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tmelorc1
Posts: 5
Joined: Thu Jan 12, 2017 3:27 am

Re: Font kernel

Postby tmelorc1 » Thu Jan 12, 2017 7:04 am

Thanks for the list:
Moini wrote:'in':90.0, 'pt':1.25, 'px':1.0, 'mm':3.5433070866, 'cm':35.433070866, 'm':3543.3070866, 'km':3543307.0866, 'pc':15.0, 'yd':3240.0 , 'ft':1080.0


What is not clear to me is
For the relative unit em, you'll need to insert the font size/m-height in px, then multiply by the em value.


What should be font size/m-height in px? Suppose I'm using font size 10pt. Is 1 m-height = 1em?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Font kernel

Postby Moini » Thu Jan 12, 2017 7:20 am

The unit em is: 1em = current font-size
Then, whatever your document unit is (which is also the unit of the font that is shown), you need to use that to do your calculation accordingly.

E.g. my document has a document unit of mm. Therefore, if I type a text, I get the font size indicated in mm (in 0.91).
Let's assume my font size is 3 mm, and I want 1.2 em distance between letters.

Then I type 1.2 (from em) * 3 (from mm) * 3.543 (px per mm)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tmelorc1
Posts: 5
Joined: Thu Jan 12, 2017 3:27 am

Re: Font kernel

Postby tmelorc1 » Thu Jan 12, 2017 8:08 am

Moini wrote:The unit em is: 1em = current font-size
Then, whatever your document unit is (which is also the unit of the font that is shown), you need to use that to do your calculation accordingly.

E.g. my document has a document unit of mm. Therefore, if I type a text, I get the font size indicated in mm (in 0.91).
Let's assume my font size is 3 mm, and I want 1.2 em distance between letters.

Then I type 1.2 (from em) * 3 (from mm) * 3.543 (px per mm)


Great! Thanks so much. I'll do some tests.


Return to “Help with using Inkscape”