bugGNU Octave - Bugs: bug #45865, cygwin: fonts not rendering on...

 
 

bug #45865: cygwin: fonts not rendering on screen in OpenGL plots

Submitter:  None
Submitted:  Wed 02 Sep 2015 09:43:04 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  cd Originator Email:  -email is unavailable-
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
   

Jump to the original submission

Sun 20 Sep 2015 03:21:53 PM UTC, comment #11: 

Thanks for looking into this, as well as for your suggestions.

Carlos <commoner>
Sat 12 Sep 2015 06:52:39 PM UTC, comment #10: 

This seems more like a cygwin packaging or build environment problem than an Octave bug, since others have this behavior working perfectly in the native Windows build.

Leaving open for now in case other cygwin users have a way to help, but this will likely be closed since there doesn't seem to be anything wrong with Octave.

Mike Miller <mtmiller>
Group Member
Fri 04 Sep 2015 08:55:26 PM UTC, comment #9: 

Well it seems that the particular combination of HW and SW is not going to work on your computer.  If you are running Windows 7, you could try the Windows version of Octave (http://www.gnu.org/software/octave/download.html) rather than the Linux version running on Cygwin.  Or you could just use gnuplot.


Rik <rik5>
Group administrator
Fri 04 Sep 2015 08:23:57 PM UTC, comment #8: 

The font changes work fine with gnuplot.

Carlos <commoner>
Fri 04 Sep 2015 08:06:52 PM UTC, comment #7: 


>> close all
>> plot(0:3)
>> set (gca, "fontname", "Arial");
>> set (gca, "fontname", "Helvetica");
>> set (gca, "fontname", "Courier");
>> set (gca, "fontname", "Times");


no rendering for any of the fonts.

>> close all
>> graphics_toolkit qt
>> text (0.5, 0.5, "Hello World", "fontname", "Arial");
>> set (gcf, "__enhanced__", "off");


no rendering either. All the fonts appear to be installed per "fc-list".

Carlos <commoner>
Fri 04 Sep 2015 06:37:55 PM UTC, comment #6: 

At least there is a workaround in using gnuplot which you can use for the time being.

Since the text example illustrated the problem that will be simpler to work with going forward

Further questions

1) What font did you use for "FILL_IN_A_GOOD_FONT"?

2) Do you have any special hardware like an Nvidia graphics card?

3) Does this result look any better?


close all
graphics_toolkit qt
text (0.5, 0.5, "Hello World", "fontname", "Arial");
set (gcf, "__enhanced__", "off");



Rik <rik5>
Group administrator
Fri 04 Sep 2015 05:28:55 PM UTC, comment #5: 

After adding closed parentheses, text command executes, but string is not rendered properly. Also tried

>> close all
>> graphics_toolkit qt
>> plot(0:3)
>> set (gca,"fontname","FILL_IN_A_GOOD_FONT")


and text in plot is still not properly rendered. Resizing doesnt help.

Carlos <commoner>
Fri 04 Sep 2015 04:09:31 PM UTC, comment #4: 

There was a typo in the code I sent.  It needed a closing parenthesis to execute.  Now that we know it is OpenGl only, try


close all
graphics_toolkit qt
text (0.5, 0.5, "0.1 0.5 Hello World 0.75 1.0")


One possibility is the font that was selected is not particularly well rendered for some reason.  You could attempt to force it to a known good value with the set() command.  Sample code:


close all
graphics_toolkit qt
plot (0:3);
set (gca, "fontname", "FILL_IN_A_GOOD_FONT")


On Linux you should be able to get a list of fonts available by using


fc-list


from a shell command line.

Rik <rik5>
Group administrator
Fri 04 Sep 2015 03:12:17 PM UTC, comment #3: 

Hi, only the gnuplot engine works (which is great for me since I need to be able to track the cursor position), the fltk and qt engines do not work. Resizing does not affect the rendering (lack thereof) when using fltk and qt.

close all
text (0.5, 0.5, "0.1 0.5 Hello World 0.75 1.0"
## Does this display correctly

No...Octave hangs:

>> close all
>> graphics_toolkit gnuplot
>> text(0.5, 0.5, "0.1 0.5 Hello World 0.75 1.0"


(and nothing happens)

Carlos <commoner>
Fri 04 Sep 2015 11:36:13 AM UTC, comment #2: 

Another point, do you have special hardware like an Nvidia graphics card?

Rik <rik5>
Group administrator
Fri 04 Sep 2015 11:34:40 AM UTC, comment #1: 

To narrow it down, try using a different plot engine.


close all
graphics_toolkit gnuplot
plot (0:3)
## Does gnuplot engine work?

close all
graphics_toolkit fltk
plot (0:3)
## Does fltk engine work?

close all
graphics_toolkit qt
plot (0:3)
## Does qt engine work?


When you have found which engine or engines don't work, try this


close all
text (0.5, 0.5, "0.1 0.5 Hello World 0.75 1.0"
## Does this display correctly


Also, try using the mouse to re-size the window.  Are there certain window sizes that work and others that don't?

Rik <rik5>
Group administrator
Wed 02 Sep 2015 09:43:04 PM UTC, original submission:  

Hi,

I am using Octave 4.0.0 on Cygwin (running on Windows 7 Enterprise). When I try plotting, the tick and axes labels will not render properly (see attachment). This appears to be the case for all text in plots. The attachment was generated using the command:

plot([0 1 2 3])

Regards. cd


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34798:  notext.jpg added by None (33KiB - image/jpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-22 mtmiller StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2015-09-12 mtmiller CategoryPlotting Plotting with OpenGL
        Item GroupNone Incorrect Result
        Operating SystemGNU/Linux Microsoft Windows
        Summarytext not rendering when plotting cygwin: fonts not rendering on screen in OpenGL plots
    2015-09-04 rik5 StatusWorks For Me Need Info
    2015-09-04 rik5 StatusNone Works For Me
    2015-09-02 None Attached File- Added notext.jpg, #34798

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code