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

Re: x11: slow drawing after set xtics font

by Ben Abbott :: Rate this Message:

Reply to Author | View in Thread

 On Thursday, June 18, 2009, at 08:32AM, "Petr Mikulik" <mikulik@...> 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@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

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