From: Alan W. I. <ir...@be...> - 2002-09-17 02:36:04
|
On Tue, 17 Sep 2002, Joao Cardoso wrote: > There is something strange with the last x08c.c that I have just cvs commited; > colors look strange under the png driver, either with -drvopt optimize or > not. But I thing that it has nothing to do with the macro definition. I will look at this. > It looks like freetype does not find the specifyed fonts. Can anyone give me a > hint? You have to set some environment variables to inform plfreetype where the fonts are; I know it is clumsy, but it should work for now until we can get better PLplot freetype font finding under Linux (perhaps with Keith Packard's fontconfig if/when it becomes standard part of distros?). The environment variables are mentioned in plfreetype.c. The relevant names are largely self-documenting and are PLPLOT_FREETYPE_FONT_PATH (trailing slash required) PLPLOT_NORMAL_FONT PLPLOT_ROMAN_FONT PLPLOT_ITALIC_FONT PLPLOT_SCRIPT_FONT PLPLOT_SYMBOL_FONT I have the standard X11 fonts, including type1 and trutype fonts: > > #: xset q > ... > Font Path: > ...,/usr/X11R6/lib/X11/fonts/TTF,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,... So I believe you could set PLPLOT_FREETYPE_FONT_PATH to /usr/X11R6/lib/X11/fonts/ and then set the other names to TTF/Arial.ttf (or whatever is appropriate for your system for normal, roman, italic, script, and symbol fonts). Please let us know if that works for your situation. Alan |