# HG changeset patch # User David Bateman # Date 1295214379 -3600 # Node ID beb4f0f27a3299e61254e5214f7c41e360a80f4f # Parent 50a7935f25122c94ecde47007013ca64d4d2f15f Use {} as the default font for the gnuplot backend diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,6 +1,10 @@ +2011-01-16 David Bateman + + * plot/__go_draw_axes__.m: Use "{}" as the default font. + 2011-01-15 Rik - * scripts/help/doc.m, scripts/help/which.m, + * scripts/help/doc.m, scripts/help/which.m, scripts/miscellaneous/comma.m, scripts/miscellaneous/ls.m, scripts/miscellaneous/paren.m, scripts/miscellaneous/semicolon.m, scripts/pkg/pkg.m: Eliminate @deffn macros. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1472,7 +1472,8 @@ pos = ""; endswitch if (__gnuplot_has_feature__ ("key_has_font_properties")) - fontspec = create_fontspec (hlgnd.fontname, hlgnd.fontsize, gnuplot_term); + [fontname, fontsize] = get_fontname_and_size (obj); + fontspec = create_fontspec (fontname, fontsize, gnuplot_term); else fontspec = ""; endif @@ -2082,8 +2083,8 @@ endfunction function [f, s, fnt, it, bld] = get_fontname_and_size (t) - if (isempty (t.fontname)) - fnt = "Helvetica"; + if (isempty (t.fontname) || strcmp (t.fontname, "*")) + fnt = "{}"; else fnt = t.fontname; endif