>       Just wondering aloud, to those that know the answer..
>       why is it again that Fl::set_font() does not return an error
>       if the font is not found?

I do not know - and I wrote some of that code...

>       Do the underlying functions not know themselves?

Well... That kinda depends... On OSX and recent winXX systems the OS
font engine is usually pretty good at finding something that is good
enough, even when the specific font you requested is not available. You
can make XFT (and with some work even Xlib) do something similar but it
is harder...

So often what you get works and no one really cares...

But yes, in principle it is possible to tell whether we got the font we
asked for or not. And I think (as you do) that we ought to report that
to the calling function - but then we are into API breakage and...


>       It seems possible OP's Fl::set_font() call is failing 
> in FLTK1.3.x
>       for some reason.

Indeed - or that the font he is loading does not have Unicode code
points for the glyphs, but is instead some other encoding. So the font
loads succesfully, but does not display his text because the "code page"
is wrong.

Prior to the deployment of Unicode, there were a few competing encodings
used for CJK fonts, most of which are not Unicode compatible, and I
assume a lot of those files must still be in circulation...

> 
>       Leowang: Double check your FLTK 1.3.x build has XFT enabled
>       (anti aliased fonts).

And that the font you are loading is Unicode compatible...


SELEX Galileo Ltd
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