[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33163] The "extent" property for text objects
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #33163] The "extent" property for text objects has incorrect position encoded. Patch attached. |
Date: |
Fri, 29 Apr 2011 22:57:00 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24 |
Follow-up Comment #3, bug #33163 (project octave):
Matlab compatibility has been improved.
Without patch
graphics_toolkit fltk
h = text (0.5, 0.5, 'Hello World', 'fontname', 'Helvetica', 'fontsize', 12);
axis ([0 1 0 1])
fprintf ('Extents = [%f, %f, %f, %f]n', get (h, 'extent'))
Extents = [-0.002304, -0.021911, 0.142857, 0.037978]
With patch
graphics_toolkit fltk
h = text (0.5, 0.5, 'Hello World', 'fontname', 'Helvetica', 'fontsize', 12);
axis ([0 1 0 1])
fprintf ('Extents = [%f, %f, %f, %f]n', get (h, 'extent'))
Extents = [0.500000, 0.481011, 0.142857, 0.037978]
Matlab
h = text (0.5, 0.5, 'Hello World', 'fontname', 'Helvetica', 'fontsize', 12);
axis ([0 1 0 1])
fprintf ('Extents = [%f, %f, %f, %f]n', get (h, 'extent'))
Extents = [0.496552, 0.466472, 0.179310, 0.058309]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33163>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/