Quick and dirty workaround: multiply the desired size by 1.25 For instance: 10 pt type = 12.5 px The explaination of this is that svg uses a resolution of 90 dpi for its pixel size as default. Postscript type units are 72 dpi. 90/72=1.25
Anyway, as I expressed before, inkscape is being used by designers who work for print as well as for screen. Typographic point size of 1/72" is sort of "industry standard" for print, and most of the applications using type for that output use that unit. So Inkscape needs, at least, a unit selector in the type dialog asap.
Gez.
On Friday, March 21, 2008, 5:21:00 PM, Guillermo wrote:
GE> Quick and dirty workaround: multiply the desired size by 1.25 GE> For instance: 10 pt type = 12.5 px GE> The explaination of this is that svg uses a resolution of 90 dpi for its GE> pixel size as default. Postscript type units are 72 dpi. GE> 90/72=1.25
Could you point to somewhere in the SVG spec that leads you to this conclusion?
Apperently, nowhere in the SVG specification. But Inkscape documentation makes clear that the "user units" in inkscape are defined as 90 dpi. http://inkscape.modevia.com/inkscape-man.html
**-d* /DPI/, *--export-dpi*=/DPI/*
The resolution used for PNG export. The default is 90, which corresponds to 1 SVG user unit (px, also called ``user unit'') exporting to 1 bitmap pixel. This value overrides the DPI hint if used with --export-use-hints.
I don't know why this value seems to be set on stone. I think it should be customizable. For me (I work mostly for print) the 90 dpi set only means that I'll get the wrong sizes when I export or import files and a nightmare when it comes to font sizes.
:-)
Chris Lilley escribió:
On Friday, March 21, 2008, 5:21:00 PM, Guillermo wrote:
GE> Quick and dirty workaround: multiply the desired size by 1.25 GE> For instance: 10 pt type = 12.5 px GE> The explaination of this is that svg uses a resolution of 90 dpi for its GE> pixel size as default. Postscript type units are 72 dpi. GE> 90/72=1.25
Could you point to somewhere in the SVG spec that leads you to this conclusion?
On Fri, 4 Apr 2008 19:38:23 +0200, Chris Lilley <chris@...157...> wrote:
On Friday, March 21, 2008, 5:21:00 PM, Guillermo wrote:
GE> Quick and dirty workaround: multiply the desired size by 1.25 GE> For instance: 10 pt type = 12.5 px GE> The explaination of this is that svg uses a resolution of 90 dpi for its GE> pixel size as default. Postscript type units are 72 dpi. GE> 90/72=1.25
Could you point to somewhere in the SVG spec that leads you to this conclusion?
That SVG requires a particular interpretation of px in physical units is a common misconception resulting from uncareful reading of section 4.3.2 of the CSS2 specification, which SVG references. I've had to disabuse people of it many, many times.
Inkscape's default interpretation of px actually is 1/90in (before the effects of the viewbox or any user transformations), which may not help.
Given how often people make this mistake, it's something that may be worth explicitly clarifying in the SVG specification.
-mental
participants (3)
-
Chris Lilley
-
Guillermo Espertino
-
MenTaLguY