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?
Font kernel
Re: Font kernel
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.
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)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: Font kernel
Thanks for the list:
What is not clear to me is
What should be font size/m-height in px? Suppose I'm using font size 10pt. Is 1 m-height = 1em?
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?
Re: Font kernel
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)
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)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: Font kernel
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.