> > hm. does this also mean that someone can render utf8 text into
> > Fl_GL_Window without external libraries?
> 
> At least under Mac OS X, the present 1.3 code renders any utf
> string of any font in Fl_Gl_Window's using textures.

I think that recent winXX variants also cope with this OK, IIRC - though
I did not bother re-testing before I sent this!

However, the XFT / X11 case might be trickier - there's a comment at
line 86 of gl_draw.cxx (and it looks a lot like my "handwriting"...)
that points out that we ideally would need an implementation of
glXUseXftFont to make this work.

But we don't have one, indeed I don't think such a thing really exists
"officially"... Though googling around, I did find an implementation "by
hand" in (I think) Fox toolkit.

They were basically rendering the font glyphs into a bitmap cache when
they were called up then passing them to the GL render... We would
likely have to do something very similar I guess. I don't think the Fox
implementation is directly useful to us however.

-- 
Ian


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-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to