> Hi Ian - Yes, I've tested it on Debian and it works well.
> 
> What I did is simply replace the function fl_xxfont() in the latest 
> official FLTK snapshot with the one from the fltk-1.1.8-utf.

Yes, that should work... Ideally, there are a few enhancements to
fontopen() that I'd like to include also, but that is less of a "drop
in" replacement, so will require some careful merging!

> Looking at fl_xxfont() I guess we could quite easily add
> support for the
> other standard fonts, too.

Well, what I had envisaged doing (but have not yet done) is a much more
complicated scheme (unnecessarily so?) to parse the requested font name
into an XLFD, then query X to see if a font with that name exists. If it
does, we load the named font at the closest size it provides. In
general, this ought to get the correct face, at the requested size or
possibly a size bigger or smaller, for a lot of cases. Maybe!

If that fails, then we resort to something like my current hack, where
we just search for a "system" font at the appropriate size and hope for
the best!

But... I don't know how well that will play. Should function OK, but I
won't have time to look at this for a few days (possibly more.)

-- 
Ian




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to