bugGNU Octave - Bugs: bug #55833, Implement axes and text...

 
 

bug #55833: Implement axes and text "fontsmoothing" property

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Tue 05 Mar 2019 12:55:14 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Mar 2019 08:15:29 PM UTC, comment #2: 

@Pantxo: Incidentally, while working on this I came across this post: https://blogs.mathworks.com/graphics/2015/07/13/graphicssmoothing-and-alignvertexcenters/.

If you read through the comments there is this gem.


No, the FontSmoothing property is different. That's controlling as aspect of how the font rasterizer works. The text is actually rendered by using the font rasterizer to create a texture map, and then using texture mapping to copy that into the framebuffer.


Does that help you understand how to rotate text, the subject of a different bug report?

Rik <rik5>
Group administrator
Wed 06 Mar 2019 08:09:40 PM UTC, comment #1: 

@Pantxo: This is awesome!  I committed the patch here: https://hg.savannah.gnu.org/hgweb/octave/rev/0adb232f93b9.

I made a few changes.  I added a note to the NEWS file telling programmers about this nice, new property.  I changed the function signature for set_anti_aliasing so that the input variable was not named "on" which I thought was confusing.  It looked like you could only turn on anti-aliasing, and not disable it.  I used the name "val" which can take the values of true/false or "on"/"off".  I also corrected one type and changed the variable name "do_anitalias" to "do_anti_alias".

I tested this against Matlab and we actually perform better in some regards.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 05 Mar 2019 12:55:14 PM UTC, original submission:  

The axes and text "fontsmoothing" property is supposed to control wether anti-aliasing is applied. The attached patch implements this property for OpengGL toolkits.

Pantxo Diribarne <pantxo>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46430:  fontsmoothing3.patch added by pantxo (9KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-06 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2019-03-05 pantxo Attached File- Added fontsmoothing3.patch, #46430

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code