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

 
 

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

Submitted by:  None
Submitted on:  Wed 02 Sep 2015 09:43:04 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: cdOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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 Davila <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>
Project Administrator
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>
Project Administrator
Fri 04 Sep 2015 08:23:57 PM UTC, comment #8:

The font changes work fine with gnuplot.

Carlos Davila <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 Davila <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?

Rik <rik5>
Project 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 Davila <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

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:

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

from a shell command line.

Rik <rik5>
Project 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 Davila <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>
Project Administrator
Fri 04 Sep 2015 11:34:40 AM UTC, comment #1:

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

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

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

Rik <rik5>
Project 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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by commoner (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 Feb 2016 12:12:41 AM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Sat 12 Sep 2015 06:52:39 PM UTCmtmillerCategoryPlotting=>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
    Fri 04 Sep 2015 06:37:55 PM UTCrik5StatusWorks For Me=>Need Info
    Fri 04 Sep 2015 11:36:13 AM UTCrik5StatusNone=>Works For Me
    Wed 02 Sep 2015 09:43:04 PM UTCNoneAttached File-=>Added notext.jpg, #34798

    Back to the top


    Powered by Savane 3.1-cleanup1