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

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

[Octave-bug-tracker] [bug #45788] get extent with missing font in in Win


From: jsh
Subject: [Octave-bug-tracker] [bug #45788] get extent with missing font in in Windows 8 returns zero height
Date: Tue, 18 Aug 2015 00:53:03 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

URL:
  <http://savannah.gnu.org/bugs/?45788>

                 Summary: get extent with missing font in in Windows 8 returns
zero height
                 Project: GNU Octave
            Submitted by: jsh
            Submitted on: Tue 18 Aug 2015 12:53:02 AM GMT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The following snippet will in the Qt Gui on Windows 8 results in (1) a warning
for a missing font which is ok, (2) extent(4)=0 which should be the height
parameter, (3) font='*' which I guess is a substitute for the default font
name.


font   = 'bar';
h_temp = uicontrol( figure, 'Style', 'text', 'String', 'foo', 'FontName', font
);
extent = get( h_temp, 'Extent' )
font   = get( h_temp, 'FontName' )


I think the correct result is that font should be set to the actual default
font name and the extent(4) should be the actual/corresponding height (this
also seem to work fine on Linux).




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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