On 27 Dec 2007, at 21:33, Lorin Lund wrote:

> There is a font called Kapl that I want to use in an
> editor.  On Windows I have modified a version of the
> editor program from the FLtk test directory to use
> the Kapl font.  It works.  But when I try to take that
> program to FreeBSD it can't find the font.  The font
> is found by Gnome's font tool.  So I think I have the
> font installed correctly under FreeBSD.
>
> I have the TTF and the pcf versions of the font installed
> on FreeBSD (or at least that is my intent.  I don't
> know which of those is being found by Gnome.)
>
> Any help would be appreciated.

You did not say which version of fltk you were using. That can make a  
difference, as the font code has changed around at various points...

I don't know FreeBSD well, (the only *BSD machine I own is this Mac  
running OSX, which obviously has a different WM and font system from  
the other BSD's...) so what follows is based on my work with linux  
and other *nixes.
Does the BSD machine use XFT to load fonts? If so, it's almost  
certainly the TTF rather than PCF you want.

Anyway: if you run the font demo program from the test directory, can  
you see the font listed there? What name is it listed with? If you  
are using fltk-2, try again with the fonts test program form the  
fltk-1.1.8 snapshots (the font code is slightly different than the  
fltk-2 tree, and may work differently for you. If that is the case,  
tell us what you find!)

I'd guess that the problem is that the font system is failing to find  
a match for the font name you are passing in your code - but that's  
just a guess. Making the name match what the underlying font system  
has should get things working...

-- 
Ian



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to