I have problem to have fonts in graphics using GDD. R version: R 2.2.1 (2005-12-20). GDD version: GDD_0.1-8.tar.gz Platform: Linux 2.6.17-gentoo-r8 #2 SMP Sat Nov 4 21:16:47 EST 2006 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux I have configured the basefont.mapping file accordingly to the path of the font on my computer: base.norm:/usr/share/fonts/corefonts/arial.ttf base.ital:/usr/share/fonts/corefonts/ariali.ttf base.bold:/usr/share/fonts/corefonts/arialbd.ttf base.bita:/usr/share/fonts/corefonts/arialbi.ttf Those files exists and are present at the right place: ls /usr/share/fonts/corefonts/arial*.ttf /usr/share/fonts/corefonts/arial.ttf /usr/share/fonts/corefonts/arialbi.ttf /usr/share/fonts/corefonts/arialbd.ttf /usr/share/fonts/corefonts/ariali.ttf In R, when I import the GDD library and look at the font path, they are correct:
library('GDD')
.Call("gdd_look_up_font", NULL)
[1] "/usr/share/fonts/corefonts/arial.ttf" [2] "/usr/share/fonts/corefonts/arialbd.ttf" [3] "/usr/share/fonts/corefonts/ariali.ttf" [4] "/usr/share/fonts/corefonts/arialbi.ttf" [5] NA When I create a graphic, there is no font:
library(GDD) GDD() plot(rnorm) dev.off()
I have went through the following threads and it did'nt help: http://mailman.rz.uni-augsburg.de/pipermail/stats-rosuda-devel/2006q1/000197.html http://tolstoy.newcastle.edu.au/R/help/06/04/25159.html The ouptut of my GDD installation is: R CMD INSTALL GDD_0.1-8.tar.gz * Installing *source* package 'GDD' ... checking for gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking return type of signal handlers... void checking for memset... yes checking for mkdir... yes checking for rmdir... yes checking for gdlib-config... /usr/bin/gdlib-config libgd-flags according to gdlib-config: -I/usr/include -L/usr/lib -ljpeg -lfontconfig -lpng12 -lz -lm if that is not correct, fix your gd installation checking gd.h usability... yes checking gd.h presence... yes checking for gd.h... yes checking for gdImageCreateFromPng in -lgd... yes checking usability of FreeType in GD... yes checking whether GD programs can be compiled... yes configure: creating ./config.status config.status: creating src/Makevars config.status: creating src/gddconfig.h ** libs i686-pc-linux-gnu-gcc -I/usr/lib/R/include -I/usr/include -I/usr/include -DHAVE_GDDCONFIG_H -I. -Iinclude -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -O2 -march=pentium4 -fomit-frame-pointer -pipe -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -O2 -march=pentium4 -fomit-frame-pointer -pipe -c GDD.c -o GDD.o i686-pc-linux-gnu-gcc -I/usr/lib/R/include -I/usr/include -I/usr/include -DHAVE_GDDCONFIG_H -I. -Iinclude -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -O2 -march=pentium4 -fomit-frame-pointer -pipe -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -O2 -march=pentium4 -fomit-frame-pointer -pipe -c GDDtalk.c -o GDDtalk.o i686-pc-linux-gnu-gcc -shared -o GDD.so GDD.o GDDtalk.o -L/usr/lib -L/usr/lib -lgd -ljpeg -lfontconfig -lpng12 -lz -lm -L/usr/lib/R/lib -lR ** R ** inst ** help >>> Building/Updating help pages for package 'GDD' Formats: text html latex example GDD text html latex example GDDfont text html latex example ** building package indices ... * DONE (GDD) Anyone can help me with this? Miguel Tremblay http://ptaff.ca/miguel/