bugGNU Octave - Bugs: bug #37007, Color property does not work for...

 
 

bug #37007: Color property does not work for text objects (OpenGl)

Submitter:  Rik <rik5>
Submitted:  Wed 01 Aug 2012 12:26:12 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Jun 2013 04:14:51 AM UTC, comment #5: 

Just to confirm that this fixes the problem
reported in #39315.

Sorry about the duplication...

Michael Godfrey <godfrey>
Group Member
Mon 24 Jun 2013 02:40:58 AM UTC, comment #4: 

Okay, I changed the cset to make the call to update_text_extent in graphics.in.h (http://hg.savannah.gnu.org/hgweb/octave/rev/4c51eaffa9e4).  Closing report and associated duplicates.

Rik <rik5>
Group administrator
Mon 24 Jun 2013 01:37:28 AM UTC, comment #3: 

I was suggesting to modify graphics.in.h and add update_text_extent in the updater update_color, similar to what's done for other properties.

Michael Goffioul <goffioul>
Mon 24 Jun 2013 01:31:06 AM UTC, comment #2: 

I made a quick changeset which forcibly calls update_text_extent and it seems to work.  See the attached.  If you think this is okay I'll commit it in the next day or so.

(file #28397)

Rik <rik5>
Group administrator
Mon 24 Jun 2013 12:58:51 AM UTC, comment #1: 

I suppose that text::properties::update_color method should also call update_text_extent, as the latter is responsible for regenerating the internal cached rendered version of the text.

Michael Goffioul <goffioul>
Wed 01 Aug 2012 12:26:12 AM UTC, original submission:  

The Color property for a text object should change the font color to the specified Color.  Instead, all text is black in Octave.

Sample Code:


h = text (0.5,0.5, "Hello World");
get (h, "Color")
ans =

   0   0   0

set (h, "Color", "r");
get (h, "Color")
ans =

   1   0   0


The graphic property is updated correctly, but the color itself is unchanged.

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28397:  text_color.cset added by rik5 (809B - application/octet-stream)

 

Carbon-Copy List
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by rik5 (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
    2013-06-24 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2013-06-24 rik5 Dependencies- bugs #38683 is dependent
    2013-06-24 rik5 Attached File- Added text_color.cset, #28397
        StatusNone In Progress
    2013-06-24 rik5 Dependencies- bugs #38264 is dependent
    2013-06-23 rik5 CategoryPlotting Plotting with OpenGL
        Severity1 - Wish 3 - Normal
        SummaryColor property does not work for text objects Color property does not work for text objects (OpenGl)

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code