There are some rounding errors in the font size display in r11664.
Open the attached example file.  18.2pt is 22.75 px in the XML editor,
but 18.19999999 (plus or minus a few 9's) in the display.

The fix would be for the bit of code that is displaying the point size,
wherever that is, to do this:

  font_size = round (1000.0 * font_size)/1000.0;

Or 10000.   It loses a bit of precision, but are there any applications
that need 1/10000th of a px font size precision?

In any case 18.199999999 -> 18.200 and would then display as 18.2.


** Attachment added: "point_size.svg"
   
https://bugs.launchpad.net/inkscape/+bug/168164/+attachment/3315200/+files/point_size.svg

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to inkscape in Ubuntu.
https://bugs.launchpad.net/bugs/168164

Title:
  font sizes specified in pixels instead of points

Status in Inkscape: A Vector Drawing Tool:
  Fix Committed
Status in “inkscape” package in Ubuntu:
  Triaged

Bug description:
  I've been using Inkscape for work as my only vector editor for the past
  year or so, and while it's extremely capable, there is one coding choice
  which I find completely bewildering: Why is font size specified in pixels
  instead of points? This seems to be used in both listboxes and the actual
  raw SVG. For the longest time I could not figure out why my text always
  looked so small. I don't think pixels are a useful measurement for text, as
  points are the de facto standard.

  Using inkscape 0.44.1 autopackage.org build on Ubuntu Linux 6.06.

To manage notifications about this bug go to:
https://bugs.launchpad.net/inkscape/+bug/168164/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to