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

Re: x11: slow drawing after set xtics font

by Daniel J Sebald :: Rate this Message:

Reply to Author | View in Thread

Petr 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"

I suggest gnuplot be modified slightly to deal with this.  Rather than continually searching for the font when '*' is the font name, x11 terminal should search for the font the first time, record the default font file name to memory, and from there forward use the saved file name, not searching.  The drawback is that the x11 terminal default font would be changeable on the fly, but that isn't an uncommon expectation with these sorts of things.

Dan

------------------------------------------------------------------------------
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