Measure Path extension doesn't use real superscript

Bug #648233 reported by Craig Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

The measure path extension, when used to calculate the area of a path, uses the caret symbol and the digit 2 (^2) to show that the units are squared, for example 100 cm^2. Now that inkscape can produce real superscript and subscript, this extension should make use of that and emit correct superscript text.

I have attached a patch which will do this. It works for me with windows 7 and revision 9791 of trunk.

Please test this patch out and let me know if you have any trouble.

Thanks,
Craig

Revision history for this message
Craig Marshall (craig9-deactivatedaccount) wrote :
Changed in inkscape:
assignee: nobody → Craig Marshall (craig9)
Changed in inkscape:
status: New → In Progress
su_v (suv-lp)
tags: removed: extensions
Revision history for this message
jazzynico (jazzynico) wrote :

Works as expected on Windows XP, Inkscape revision 9793.

Revision history for this message
su_v (suv-lp) wrote :

Works as expected on OS X 10.5.8, Inkscape 0.48+devel r9802

The patch has a lot of white space changes. Can you do them in a separate patch, if they are needed?

Revision history for this message
Craig Marshall (craig9-deactivatedaccount) wrote :

New patch that should work in all cases (text along path, and text at fixed angle), and also doesn't have all those whitespace changes.

Revision history for this message
jazzynico (jazzynico) wrote :

New patch tested successfully on Windows XP, Inkscape trunk revision 12253.
Feel free to commit!

Changed in inkscape:
importance: Undecided → Low
milestone: none → 0.49
Revision history for this message
jazzynico (jazzynico) wrote :

Fixed in the trunk, revision 12255.
Thanks Craig!

Changed in inkscape:
status: In Progress → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.