On 21 June 2005 at 10:48, Ryan Lovett wrote: | On Thu, Jun 16, 2005 at 08:17:55PM -0500, Dirk Eddelbuettel wrote: | > On 16 June 2005 at 10:37, Ryan Lovett wrote: | > | I'll look into building R with debugging symbols to check on the | > | R_XLoadQueryFontSet function. | > | > Sounds good, and thanks for your help on it. I'll keep the report open til we | > get some resolution either way. | | | morgoth:/# file /usr/lib/R/bin/exec/R | /usr/lib/R/bin/exec/R: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped | morgoth:/# file /usr/lib/R/lib/libR* | /usr/lib/R/lib/libRlapack.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped | /usr/lib/R/lib/libR.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped | | | morgoth:/var/tmp/r-base-2.1.0$ env R_HOME=/usr/lib/R LD_LIBRARY_PATH=/usr/lib/R/lib R_SESSION_TMPDIR=/tmp/RtmpLER1pE gdb /usr/lib/R/bin/exec/R | ... | (gdb) break R_XLoadQueryFontSet | Function "R_XLoadQueryFontSet" not defined. | Make breakpoint pending on future shared library load? (y or [n]) y | | Breakpoint 1 (R_XLoadQueryFontSet) pending. | (gdb) r | Starting program: /usr/lib/R/bin/exec/R | | R : Copyright 2005, The R Foundation for Statistical Computing | Version 2.1.0 (2005-04-18), ISBN 3-900051-07-0 | | R is free software and comes with ABSOLUTELY NO WARRANTY. | You are welcome to redistribute it under certain conditions. | Type 'license()' or 'licence()' for distribution details. | | Natural language support but running in an English locale | | R is a collaborative project with many contributors. | Type 'contributors()' for more information and | 'citation()' on how to cite R or R packages in publications. | | Type 'demo()' for some demos, 'help()' for on-line help, or | 'help.start()' for a HTML browser interface to help. | Type 'q()' to quit R. | | p> plot(1:10) | Breakpoint 2 at 0x2a97b0eb23: file devX11.c, line 695. | Pending breakpoint "R_XLoadQueryFontSet" resolved | | Breakpoint 2, R_XLoadQueryFontSet (display=0xb5d9f0, | fontset_name=0x7fbfff89b0 "-adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*") | at devX11.c:695 | 695 R_XFont *tmp = (R_XFont *) malloc(sizeof(R_XFont)); | (gdb) l | 690 */ | 691 #ifdef USE_FONTSET | 692 static R_XFont *R_XLoadQueryFontSet(Display *display, | 693 const char *fontset_name) | 694 { | 695 R_XFont *tmp = (R_XFont *) malloc(sizeof(R_XFont)); | 696 XFontSet fontset; | 697 int /*i,*/ missing_charset_count; | 698 char **missing_charset_list, *def_string; | 699 | (gdb) n | 700 fontset = XCreateFontSet(display, fontset_name, | &missing_charset_list, | (gdb) print fontset | $1 = 0x518cc8 | (gdb) n | 702 if(!fontset) { | (gdb) print fontset | $2 = 0x0 | (gdb) print fontset_name | $3 = 0x7fbfff89b0 "-adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*" | (gdb) n | 703 free(tmp); | (gdb) n | 704 return NULL; | (gdb) c | Continuing. | | Breakpoint 2, R_XLoadQueryFontSet (display=0xb5d9f0, | fontset_name=0x2a97b1bb60 "-*-fixed-medium-r-*--13-*-*-*-*-*-*-*") | at devX11.c:695 | 695 R_XFont *tmp = (R_XFont *) malloc(sizeof(R_XFont)); | (gdb) print fontset_name | $4 = 0x2a97b1bb60 "-*-fixed-medium-r-*--13-*-*-*-*-*-*-*" | (gdb) n | 700 fontset = XCreateFontSet(display, fontset_name, | &missing_charset_list, | (gdb) n | 702 if(!fontset) { | (gdb) print fontset | $5 = 0x0 | (gdb) c | Continuing. | Error in X11() : could not find any X11 fonts | Check that the Font Path is correct. | > | | | -- | | I was able to run both of | $ xterm -fn "-adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*" | $ xterm -fn "-*-fixed-medium-r-*--13-*-*-*-*-*-*-*" | without trouble and the font was displayed correctly.
The font code is not something I am familiar with. I would have to pass that on the R Core folks. Before I do that -- could you check with the just released R 2.1.1 ? Thanks, Dirk -- Statistics: The (futile) attempt to offer certainty about uncertainty. -- Roger Koenker, 'Dictionary of Received Ideas of Statistics' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]