On 2006-11-05 22:14+0100 wim van hoydonck wrote:

> Hi Arjen,
>
>> What happens if you build without freetype?
>
> Then it works, but the fonts look horrible.  :-(
>
>> Looking at the source code, I'd say you have not set all the
>> environment variables yet to point to the various fonts.
>
> Do you mean that apart from the following three configure options, I
> have to set every individual freetype font name with the configure
> options?
>
>  --with-freetype2-incdir   User-specified path to the libfreetype2 header 
> files
>  --with-freetype2-libdir    User-specified path to libfreetype2
>  --with-freetype-font-dir   user-specified directory for freetype fonts
>
> Pointing the last one to "/usr/share/fonts/freetype" should be enough, not?

The psttf device driver automatically uses a chain of libraries (starting
with the LASI library that includes fontconfig so that is why it works for
you.  Most/all of our other devices (such as gcw) do not use fontconfig to
handle TrueType fonts (although that is certainly one of our higher
priorities since it makes font life much easier for users). Instead, they
simply call the freetype library with the path+name of the font file. You
can find the default Linux font file names and default Linux value for
--with-freetype-font-dir in cf/freetype.ac. The first default font file name
is FreeSans.ttf which is part of the ttf-freefont package.  On my system
that is located at /usr/share/fonts/truetype/freefont (the default value of
--with-freetype-font-dir), but it may be in a different directory on your
system or you may (not yet) have the ttf-freefont font package installed.
Also, I should emphasize the ttf-freefont package of fonts is convenient but
not essential.  You have complete access to any truetype fonts on your
system, but you will have to name them specifically at configuration time
for the 30 kinds of fonts we support or at run-time with environment
variables.  Check our documentation at plplot.sourceforge.net for more
details.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to