> I have no idea who would need which bits of it, or what part of this
> header file you would need, but I see that Fl_Font.H includes
> <config.h>
> and this wouldn't be available as well (and should not be installed
> IMO)...
Yes - indeed so.
What I need to access (more often than I expected) is the "raw"
OS-native hook for the active font. Maybe we need to consider adding an
API call to deliver that, then, albeit in a host specific way?
Now, on WINXX, the current font is effectively a part of the graphics
context, so from within a suitable context (e.g. a derived draw()
method, say...) I can get at the low-level font data by doing something
like:
HDC hdc = fl_gc;
DWORD len, res = GetFontData(hdc,....
(or one of the other many and varied API's the MS provide... Confusingly
and redundantly...)
But on OSX (with CoreText) or XFT (and I think Xlib, though I seldom go
there) I need to get at the "actual" font reference, and under fltk that
is only embodied in the Fl_Font_Descriptor class, which is not exposed
in any public API.
Now, for me, that's OK since I can just pull in Fl_Font.H and use that,
but I wonder if it *might* be better to expose an API that would allow
an application to ask for the current font reference directly?
It would have to come under the "platform specific" aspect though, since
there is no generic way that would make sense to do this.
Well, maybe I'm better just sticking with what I've got!
--
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