>
>
> > I need to supply a custom ttf with my application.
> > I cannot find any documentation on how to do this.
> >=20
> > Basic idea:
> > Application starts up, loads the ttf from a file and sets it as
> > the default fltk font.
> >=20
> > 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.

Hmmmmmm.....

> 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?

Multiplatform, yes... OSX, Linux(Xft-only) and Win.

Thanks for your help :)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to