rendering of specified fontsize when fontname="*"

Ben Abbott bpabbott at mac.com
Sun Mar 29 13:06:37 CDT 2009


When the fontname = "*", the current gnuplot backend ignores the  
fontsize. Thus when fontname="*", the fontsize is also anonymous.

Using the attached "changeset-defaultfont.patch" the gnuplot backend  
is able (for most terminals) to determine the gnuplot's default font  
name and substitute it for "*". This allow the fontsize to be included  
in the rendering process.

Unfortunately, gnuplot does not provide information for the default  
fontname for the x11 or wxt terminals.

The second changeset, "changeset-anon_font_w_size.patch", permits the  
x11 and wxt terminals to render the proper fontsize when the  
fontname="*". This is because fontname="*" does not produce an error  
for the x11 or wxt terminals.  Thus, a gnuplot fontspec of "*,14" will  
render text using the default x11 font as 14pt.

I've attached two changesets because the 1st may be applied without  
the 2nd.

I've been testing these changes for a few days now. I hope all bugs  
have been found.

If there are no objections, I plan to push these changes.

John, I think these should be considered for inclusion in the 3.2  
release.

Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-defaultfont.patch
Type: application/octet-stream
Size: 9099 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090329/a15fd355/attachment.obj 
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-anon_font_w_size.patch
Type: application/octet-stream
Size: 9160 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090329/a15fd355/attachment-0001.obj 
-------------- next part --------------



More information about the Octave-maintainers mailing list