Font size from .eps import

Post questions on how to use or achieve an effect in Inkscape.
joxaal
Posts: 2
Joined: Fri Nov 15, 2013 10:59 pm

Font size from .eps import

Postby joxaal » Mon May 26, 2014 3:32 am

I am using Matlab to make a data plot for one of my thesis figures. I use inkscape to annotate the figure and add graphics. I export the figure as .eps and import with inkscape. What's strange is that I set the font size of the axis labels to 10pt using Matlab, but inkscape imports it as 12.5pt. What's even weirder is that after annotating the figure, exporting to .eps, and compiling the figure in a latex document, the font size is back to being 10pt. Anybody know what's going on?

Capture2.PNG
Capture2.PNG (124.34 KiB) Viewed 3216 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Font size from .eps import

Postby Lazur » Mon May 26, 2014 4:19 am

The answer lies somewhere between the 72 and 90 dpi working models perhaps?
12,5/10=90/72.
Inkscape works with 90 dpi, while other programs usually with 72.
Though the font size is changed, the size of the text object is the exact same.

joxaal
Posts: 2
Joined: Fri Nov 15, 2013 10:59 pm

Re: Font size from .eps import

Postby joxaal » Mon May 26, 2014 5:34 am

Yes, that has to be it. When setting my axis titles to 8pt font in Matlab, inkscape imports the .eps as 10pt.
10/8 = 12.5/10 = 90/72 = 1.25

But, that leads me to believe if I create a drawing from scratch using inkscape, the fonts will all be off by 25% when I export them and print? That can't be right, can it?

*EDIT: Ok, after further review, the answer is yes, I will have to multiply my inkscape font size by 1.25 to get the actual output font size correct. Further reading here: viewtopic.php?f=29&t=5530

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Font size from .eps import

Postby Lazur » Mon May 26, 2014 5:46 am

For printing it is always safer to convert texts to paths, and save as a pdf.

jonascj
Posts: 1
Joined: Sat May 23, 2015 1:05 am

Re: Font size from .eps import

Postby jonascj » Sat May 23, 2015 1:08 am

I asked the same question on #inkscape @ irc.freenode.net and they pointed out, that the default unit for displaying fonts in Inkscape is px. So when you in MATLAB specify fontsize 12, then it is by default 12pt. When you open that in Inkscape and see "15" displayed in the font size input field, then it is 15px, not 15pt. You can hover your mouse over the font size input field and it will display you the unit.

Also pointed out by people in that IRC channel: Inkscape is no postscript processing application, so when you open an eps in Inkscape it has been converted to PDF and then to SVG.


Return to “Help with using Inkscape”