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

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

[Octave-bug-tracker] [bug #40158] FontUnits property only works for "poi


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #40158] FontUnits property only works for "points"
Date: Mon, 25 Aug 2014 21:01:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

Follow-up Comment #6, bug #40158 (project octave):

In your example script, if I retrieve the hidden property "fontsize_points", I
obtain 72 which is the expected result. This property is now used both by the
on-screen renderer and gl2ps.

In the patch I have assumed that txt-renderer expected the font size to be in
points units (the only way it used to work), but it maybe in pixels or
something ... anyways it's not obvious.

The following script


ht = text (0.5, 0.5, 'M');
set (ht, 'fontunits', 'inches', 'fontsize', 1.0); 
set (ht, 'fontunits', 'pixels'); 
get (ht', 'fontsize')


returns 100.9 pixels/inch on my computer which is not enough to explain the
factor of 2 we observe.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40158>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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