jnweiger / inkscape-gears-dev

Enhanced version of the well known gears extension, allows spokes, center cross, metric module, best evolute shape ...
52 stars 15 forks source link

calc_units_factor() fails for mm #14

Closed jnweiger closed 10 years ago

jnweiger commented 10 years ago

I am using mm on both the document and the gears-dev settings. The annotation text has the correct dimensions in mm, but everything is drawn much to small. I re-introduced my old hack of multiplying everything (unit_factor) by 90/25.4 so that the gear is drawn to scale.

My assumption is that the inkscape svg code always uses a unit of 90dpi, even when the user asks for document units of mm. Seen with inkscape 0.48.4

Neon22 commented 10 years ago

be sure to check the document units (File/Document properties) and to draw the rulers which will show you units on the left and top of the canvas.

Otherwise, perhaps I have calculated unit_factor incorrectly - failling to take that final 90dpi into account.

jnweiger commented 10 years ago

This is a typical template with with we usually start: https://dl.dropboxusercontent.com/u/86464452/laser_template_400x300.svg It is as metric, as metric can be, afaik.

Neon22 commented 10 years ago

do you have any time for playing with this issue and #5 ?

jnweiger commented 10 years ago

Yes, I've played with removing several dead ends. Quite successfully, I believe.