On 2008-07-21 08:47+0200 Martin Sarajervi wrote:

> I run the latest release-version on Linux.
>
>
>> There are a multitude of configuration options to choose your font files
>> for
>> drivers like gcw that use plfreetype.
>>
>> I was just going to refer you to
>>
>> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.0/characters.html
>> for documentation, but it needs updating. For example, I noticed it refers
>> to ./configure --help which is a historical artifact that is no longer
>> valid
>> for our CMake-based build system.  Instead, look at the results in
>> CMakeCache.txt in your build tree for the relevant information.
>>
>> Here is just the start of those results on my system:
>>
>> [EMAIL PROTECTED]> grep PL_FREE CMakeCache.txt |head -10
>> PL_FREETYPE_FONT_PATH:PATH=/usr/share/fonts/truetype/freefont
>> //Font file for PL_FREETYPE_MONO
>> PL_FREETYPE_MONO:FILEPATH=FreeMono.ttf
>> //Font file for PL_FREETYPE_MONO_BOLD
>> PL_FREETYPE_MONO_BOLD:FILEPATH=FreeMonoBold.ttf
>> //Font file for PL_FREETYPE_MONO_BOLD_ITALIC
>> PL_FREETYPE_MONO_BOLD_ITALIC:FILEPATH=FreeMonoBoldOblique.ttf
>> //Font file for PL_FREETYPE_MONO_BOLD_OBLIQUE
>> PL_FREETYPE_MONO_BOLD_OBLIQUE:FILEPATH=FreeMonoBoldOblique.ttf
>> //Font file for PL_FREETYPE_MONO_ITALIC
>
>
> The thing is, the truetypefonts works fine when I do normal plots (not using
> the gnome2 canvas).
> I have the same result from the grep (only with another PATH that I have
> specified). In that dir I have placed fonts
> FreeMono*, FreeSans*, FreeSerif*.  I did download these manually and place
> them there, but again, it works fine when plutting without gcw (I get smooth
> truetype/"freetype" fonts on the labels).

Just to confirm you have set up your fonts correctly, please give the exact
results of the above command on your system, and also the results of ls on
the absolute path directory pointed to by PL_FREETYPE_FONT_PATH.  IOW, do
not cd to the directory, simply execute

ls /usr/share/fonts/truetype/freefont

or whatever your exact PL_FREETYPE_FONT_PATH is.

> This is the main reason for me suspecting something gcw specific, does gcw
> expect some different fonts or odoes it have any other compile parameters
> that I may have missed?

Which device gives you good-looking fonts?  The point is some of the devices
use fontconfig (where system fonts are found automatically) and some use
plfreetype (like gcw where you may have to go to some trouble to access your
fonts). In particular, do you get good-looking results for -dev png (which
also uses plfreetype)?

I just tried -dev gcw for myself using both examples/c/x01c -dev gcw and
examples/c/plplotcanvas_animation _in the install_ directory, and the fonts
looked good.

I frankly cannot remember whether there were any bugs in gcw or plfreetype
in our latest release that have been fixed in the svn trunk version, but
that version (which is what I use) is pretty stable at the moment so you
might want to try that following the directions at
http://sourceforge.net/svn/?group_id=118417

Also, could you give your Linux distribution name and version and
libfreetype version?  I am grasping at straws here, but it is possible your
problems may have to do with the particular version of libfreetype that you
have and nothing to do with PLplot.

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 libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to