imacarthur wrote:
> So we use XFT to handle the rendering (XFT wraps FT and the old
> "core" fonts and conceivably other font rendering methods we haven't
> thought of yet) and Fontconfig to manage the choosing of fonts and
> setting languages orthographies and all that stuff.
Fontconfig -- interesting. Didn't know that was an API.
I don't see any manpages or docs offhand on my machine
for that, but there is a libfontconfig, and doing a 'locate fontconfig'
I see there is a pretty hefty 'cache' in /var/cache/fontconfig,
so it seems to be heavily used.
I'll sniff into that next.
Didn't have time last night to have that stiff drink and descend
into xft docs, but I'll definitely try the zip you posted.
> So, in fltk we have the XFT rendering bit pretty well, but we don't
> really have the Fontconfig end of it down yet, and that may be where
> we need to go to get it working smoothly, just "magically" loading
> fonts that contain the glyphs we need as we go along...
Right, sounds interesting.
I find that if I'm properly motivated, I'll dive into the muck
to figure something out if it seems somehow worthwhile. The FNFC
project was one of those, but it definitely left scars. That project
involved going into very dank and dusty tombs of crappy old Microsoft
and Mac APIs that looked like they'd been designed back in the 80's,
replete with cobwebs and snakes..
> But I really struggle with the Fontconfig docs - they are a bit
> "sparse", as are the XFT ones, to be honest.
> However, XFT and FC do play well together, so at least that's a start!
Usually when the docs don't read well on successful projects,
the code reads well. So if the docs don't make sense, I'll try
to look at their code. And if that doesn't go well, I'll look
to other recent app's source code (konqueror or some such)
to see what they do.
Or, I might not have time to do any of that..! :/
Hard to say.. depends on if not doing it hinders my commercial
projects or not.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk