« Return to Thread: x11: slow drawing after set xtics font

Re: x11: slow drawing after set xtics font

by Thomas Sefzick :: Rate this Message:

Reply to Author | View in Thread

it would be best to specify the font once:

set terminal x11 font "arial,12"

and then give a font for title and labels only if it must be
different from "arial,12"

if a font isn't found by the x-server then another font is
taken instead without error message.

specifying a font and/or size for tics makes the plotting
extremely slow and is needless, because the tics
should be written in the default (the one given when
setting the terminal) font and size.

Ben Abbott wrote:
 On Thursday, June 18, 2009, at 08:32AM, "Petr Mikulik" <mikulik@physics.muni.cz> wrote:
>> '*' as a font name is a disadvantageous choice: the font selection
>> mechanism of the x-server searches through all the fonts to find
>> one which matches the name (there is a speed difference between
>> specifying '*' and the name of a non existent font) and has the
>> selected font size - in the normal x-server installation first the
>> bitmapped fonts are searched then the scalable.
>
>If the drawing gets so slow, it seems that the server searches the font list
>for each tic for font "*", right? Cannot this be eliminated?
>
>I think that Octave should produce gnuplot code like:
>
>set terminal x11 font "arial"
>set title "Hello world" font ",12"
>
>instead of
>
>set terminal x11
>set title "Hello world" font "*,12"
>

The problem the octave developers have is that identifying a font that reliably works for x11, aqua and windows ... and hopefully works for the other terminals as well.

If a font name is used (such as Arial) that is not present for a particular terminal gnuplot prints errors which results in user complaints and bug reports.

I've tested octave's graphics using the font spec ",12" and see no problem (i.e. the fontname is left blank). Would this work? ... Would x11 default to an existing font?

Ben




------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

 « Return to Thread: x11: slow drawing after set xtics font