bugGNU Octave - Bugs: bug #42884, Property FontName not changeable...

 
 

bug #42884: Property FontName not changeable before image export

Submitter:  None
Submitted:  Thu 31 Jul 2014 09:23:21 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Christian M. Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 27 Apr 2018 10:19:04 PM UTC, comment #7: 

Despite the "invalid handle" error message being printed, this seems to work correctly now in Octave 4.4. Closing as fixed.

Mike Miller <mtmiller>
Group Member
Fri 16 Dec 2016 03:54:43 PM UTC, comment #6: 

added owner of task #14243 to cc list

Hartmut <hardy>
Thu 15 Dec 2016 07:44:39 PM UTC, comment #5: 

Maybe someone could also mention this bug report in task #14243 ?

Hartmut <hardy>
Thu 15 Dec 2016 07:42:29 PM UTC, comment #4: 

I have tested this in Octave 4.2.0.

Some of those issues have been transferred to different bug reports (see comment #3).

One issue seems to still be present, now. I am not sure if it is already taken care of in another bug report. Here is how to reproduce it:


clear, close all
graphics_toolkit qt % also fails with fltk

num = figure(1)
plot(1:10)
xlabel('xLabel') % this will not change fontsize properly
ylabel('yLabel')
legend('legend') % without this legend, it works fine

fs = findall(num,'-property','FontSize') ;
set(fs,'FontSize', 40) ;


The resulting plot will not increase the fontsize of the x- and ylabels properly. Once you delete the legend objecct, the fontsizes of the labels will then work fine.

Hartmut <hardy>
Fri 08 Aug 2014 03:51:12 AM UTC, comment #3: 

This bug has been broken up into bug #42939 and bug #42940.

Rik <rik5>
Group administrator
Fri 08 Aug 2014 03:48:03 AM UTC, comment #2: 

The fontname property for FLTK is not specified by a file, but by the actual name of the font.  This is not a bug.  To set the font in FLTK in minex.m use


FontName = 'FreeSerif';

rather than

FontName='/usr/share/fonts/truetype/freefont/FreeSerif.ttf';


Rik <rik5>
Group administrator
Thu 07 Aug 2014 11:20:49 PM UTC, comment #1: 

There are several simultaneous issues going on.  I'm going to break this up into multiple bug reports.

Rik <rik5>
Group administrator
Thu 31 Jul 2014 09:23:21 AM UTC, original submission:  

Before pdf export I change the properties FontName and FontSize to my needs.

FN = findall(hF,'-property','FontName') ;
set(FN,'FontName',FontName);
FS = findall(hF,'-property','FontSize') ;
set(FS(),'FontSize',FontSize) ;

This syntax is working with graphics_toolkit("gnuplot") ;

If I use the new fltk toolkit the change of the FontName has no effect. The FontSize is changed accordingly.

If a LEGEND is present an attempt to change the FontSize gives an "invalid handle" error.

See example minex.m for details.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #31805:  minex.m added by None (405B - text/x-objcsrc)

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by hardy
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-27 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2016-12-16 hardy Carbon-Copy- Added pantxo
    2014-08-08 rik5 SummaryPorperty FontName not changeable before image export, change of FontSize gives handle error if legend is present Property FontName not changeable before image export
    2014-08-08 rik5 Dependencies- Depends on bugs #42939
    2014-08-08 rik5 Dependencies- Depends on bugs #42940
    2014-07-31 None Attached File- Added minex.m, #31805

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code