[R] Problems with fonts on linux using GDD

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Tue Nov 20 17:17:33 CET 2007


Hi

Apologies for this question.

I have read the help for GDD and font mapping, and it tells me that the
config file, /usr/lib/R/library/GDD/fonts/basefont.mapping is
responsible for mapping fonts to the GDD library.

However:

> .GDD.font()
[1] "/usr/X11R6/lib/X11/fonts/Type1/l048013t.afm"
[2] "/usr/X11R6/lib/X11/fonts/Type1/l048016t.afm"
[3] "/usr/X11R6/lib/X11/fonts/Type1/l048033t.afm"
[4] "/usr/X11R6/lib/X11/fonts/Type1/l048036t.afm"
[5] NA

Those fonts aren't even mentioned in the basefont.mapping file, so how
exactly does the basefont.mapping file intervene?

I have this in basefont.mapping:

base.norm:/usr/share/fonts/default/TrueType/FreeSans.ttf
base.ital:/usr/share/fonts/default/TrueType/FreeSerifItalic.ttf
base.bold:/usr/share/fonts/default/TrueType/FreeSansBold.ttf
base.bita:/usr/share/fonts/default/TrueType/FreeSerifBoldItalic.ttf

I have the well rehearsed problem that my GDD plots do not display any
fonts.

My questions:

1) why are the defaults fonts, eg
/usr/X11R6/lib/X11/fonts/Type1/l048013t.afm, not in my basefont.mapping
file?
2) why do I not get a font displayed, despite the default font files
being present?
3) why when I edit basefont.mapping to point to some TrueType files does
this not affect anything?
4) how do I get my GDD images to display fonts?

Many thanks in advance for your help

Mick

The information contained in this message may be confide...{{dropped:14}}



More information about the R-help mailing list