|
From: Ethan A M. <merritt@u.washington.edu> - 2006-04-29 22:29:57
|
On Saturday 29 April 2006 02:25 pm, you wrote:
>
> "As soon as Fontconfig is properly setup, adding fonts is just a matter of
> placing them into a directory that is searched by Fontconfig. Have a look
> at /etc/fonts/fonts.conf (and perhaps /etc/fonts/local.conf) to find out
> what directories are searched.
Aha. Thanks!
I did not know about that mechanism at all, and have not
been using it. Adding that file makes a lot of difference :-) :-)
My X11 setup uses a similar mechanism, but does it through
/etc/X11/fs/config rather than /etc/fonts/fonts.conf
With that file in place, I can now use all the fonts that I
couldn't get before in wxt. Including "Wingdings", which I thought you
had said before was not working. However, while playing around with this
I triggered the following:
%%%%%%%%%%%%%%%%%%%%% begin session log %%%%%%%%%%%%%%%%%%%%%%%%%%%%
lascaux [515] ./gnuplot
G N U P L O T
Version 4.1 patchlevel 0
last modified April 2006
System: Linux 2.6.12-12mdksmp
Copyright (C) 1986 - 1993, 1998, 2004
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from
http://www.gnuplot.info/faq/
Send comments and requests for help to
<gnu...@li...>
Send bugs, suggestions and mods to
<gnu...@li...>
Terminal type set to 'wxt'
gnuplot> set term wxt font 'vivaldi,20'
Terminal type set to 'wxt'
Options are '0 font "vivaldi,20"'
gnuplot> plot sin(x)/x
gnuplot>
gnuplot> set term wxt font 'wingdings,20'
Terminal type set to 'wxt'
*** glibc detected *** free(): invalid next size (fast): 0x083df148 ***
Abort
%%%%%%%%%%%%%%%%%%%%% end session log %%%%%%%%%%%%%%%%%%%%%%%%%%%%
Any idea what that's all about?
It is not the use of wingdings per se, because the font works
fine if I select it first rather than second.
Here is a minimal crashme.dem example:
# Demonstrate bug in wxt
set term wxt font "arial"
plot sin(x)
# crashes on next line, but only if a font size is given
set term wxt font "wingdings,20"
replot
And here is a trace from gdb:
*** glibc detected *** free(): invalid next size (fast): 0xb5c00510 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread -1229027648 (LWP 11253)]
0xffffe410 in __kernel_vsyscall ()
(gdb) where
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb6e43ef1 in raise () from /lib/tls/libc.so.6
#2 0xb6e4583b in abort () from /lib/tls/libc.so.6
#3 0xb6e79ff5 in __fsetlocking () from /lib/tls/libc.so.6
#4 0xb6e80587 in malloc_usable_size () from /lib/tls/libc.so.6
#5 0xb6e80a02 in free () from /lib/tls/libc.so.6
#6 0x08143215 in wxt_options () at ../term/wxt.trm:219
#7 0x080e4976 in set_terminal () at set.c:3645
#8 0x080db773 in set_command () at set.c:436
#9 0x08062221 in command () at command.c:530
#10 0x08061d2b in do_line () at command.c:382
#11 0x08061ba0 in com_line () at command.c:333
#12 0x080c1c56 in main (argc=1, argv=0xbff13294) at plot.c:638
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|