octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55075] text displayed in italic font is clipp


From: Rik
Subject: [Octave-bug-tracker] [bug #55075] text displayed in italic font is clipped on right-hand side (GUI and printing)
Date: Sun, 9 Dec 2018 10:42:16 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063

Follow-up Comment #7, bug #55075 (project octave):

The spacing issue that I identified in comment #6 is probably easier to
resolve than I thought. 

There seems to be two issues.  The first issue is that the "Margin" property
in Octave seems to be divided by 2 and half of the Margin value applied above
any text and haf applied below any text.  This should be verified with Matlab,
but my understanding is that the Margin is applied on every side of the Extent
property to determine the final bounding box size.  For documentation see
https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.text-properties.html

The second possible issue is that the extent default in Octave is 2, and maybe
measured in pixels, rather than 3, and measured in points as in Matlab.  If
measured in points, I would expect that 3/72 of an inch is 4 pixels on most
display where there ar 96 PPI.

I checked in a changeset to make the default 3 here
(https://hg.savannah.gnu.org/hgweb/octave/rev/ef0998af70f9).  However, if the
text Margin code is still using pixels rather than points, then this will be
too small.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55075>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]