> I need to supply a custom ttf with my application.
> I cannot find any documentation on how to do this.
> 
> Basic idea:
> Application starts up, loads the ttf from a file and sets it as
> the default fltk font.
> 
> How can I accomplish this?

No easy solution, I'm afraid. Fltk uses the font support of the host OS
to access and render font files, so you need to "add" your new font to
the host OS, then fltk will be able to use it.

However, there's no mechanism in fltk for installing fonts - mainly
because all the different platforms have different ideas about how to do
that. Indeed, under X, it even differs depending on whether you are
using Xft or Xlib to render your fonts...

You can do it, but it will need platform specific code. And some
platforms are easier than others...

What host OS are you on? Do you need a cross-platform solution?





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