|
From: Joao C. <jc...@fe...> - 2002-09-17 17:07:45
|
On Tuesday 17 September 2002 03:35, Alan W. Irwin wrote:
> 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 -drvo=
pt
> > 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 t=
he
> 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,/u=
sr/X
> >11R6/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, scri=
pt,
> and symbol fonts). Please let us know if that works for your situation=
=2E
Thanks, it works (after I changed in plfreetype.c, around line 518
#elif MSDOS
if (strchr(FT->font_name[i],'\\'))
#else
=09 //if (strchr(FT->font_name[i],'/')) ??? jc: what ???
=09 if (!strchr(a,'/'))
#endif
I have set=20
echo $PLPLOT_FREETYPE_FONT_PATH $PLPLOT_NORMAL_FONT
$PLPLOT_ROMAN_FONT $PLPLOT_ITALIC_FONT $PLPLOT_SCRIPT_FONT
$PLPLOT_SYMBOL_FONT
/usr/X11/lib/X11/fonts/TTF/
arial.ttf
times.ttf
timesi.ttf
comic.ttf
symbol.ttf
Now, with this techology in plplot, we need to discuss how we are going t=
o use=20
it. The text/font treatment must be discussed before we all start adding=20
truetype rendering to our prefered drivers :!
Joao
>
> Alan
>
>
>
> -------------------------------------------------------
> Sponsored by: AMD - Your access to the experts on Hammer Technology!
> Open Source & Linux Developers, register now for the AMD Developer
> Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
> _______________________________________________
> Plplot-devel mailing list
> Plp...@li...
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
|