bugGNU Octave - Bugs: bug #45788, get extent with missing font in in...

 
 

bug #45788: get extent with missing font in in Windows 8 returns zero height

Submitter:  -X- <jsh>
Submitted:  Tue 18 Aug 2015 12:53:02 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 15 Oct 2017 08:35:49 PM UTC, comment #2: 

Thanks Hartmut, I'll close this report as fixed even though I don't know what fixed this issue.

Pantxo Diribarne <pantxo>
Group Member
Thu 29 Dec 2016 10:51:52 PM UTC, comment #1: 

I have tested this with Octave 4.2.0 under Windows XP:

  • no warning about a missing font is issued any more
  • the return value of the extend is nonzero in all components
  • the return value of the fontname is "bar"


So the (second) issue, as mentioned in the title, seems fixed to me.

Is this overall behavior better now? Can this bug report be closed? Or which of those behaviors is still buggy?

Hartmut <hardy>
Tue 18 Aug 2015 12:53:02 AM UTC, original submission:  

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).

-X- <jsh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by jsh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-10-15 pantxo StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code