On 10.03.2008, at 04:32, Lorin Lund wrote:

> I am interested in using FLtk as the toolkit for A+ (aplusdev.org)  
> as I try to port A+ to Windows.
>
> A+ requires a special font.
>
> I have the font installed on Windows and on FreeBSD.
>
> When I run
>  .../test/fonts
> from 1.1.7 under Windows I see lost of fonts.  I suppose I'm seeing  
> all the fonts on the system.

You get the first 255 fonts that FLTK1 finds. This is a historic  
limitation that will be fixed in FLTK 1.3. You can however select a  
font directly (by name).

> When I run it on FreeBSD I see only the fonts listed in the  
> Enummeration.H file.

You have to enable Xft when compiling FKTK to get all fonts. This is  
disabled by default because not all X11 server support Xft.

> When I install FLtk2 on FreeBSD I see lots of fonts.  But when I  
> take the FLtk2 source tarball from FreeBSD to Win XP and try to  
> build it with MinGW/msys I get an error right away.
>
> What is the maturity level of FLtk2.  Have most sub versions  
> compiled with MinGW?  Is it just a problem with the particular  
> version I got or is FLtk2 a long ways from being useful with MinGW?

FLTK2 is in alpha stage. FLTK1 is at 1.1.8rc2, meaning it will be  
final within a week.

> Should I force 1.1.7 to recognize the crucial font on *nix?  Or  
> should I stake my project on FLtk2?


No need to force anything. The API to load and set fonts is in FLTK:

<http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.set_font>

Just give it the X font name as an argument.

Matthias

----
http://robowerk.com/


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

Reply via email to