I have a few questions about this... motivated (of course) by my interest in "GTK on Windows" performance issues. The [slightly] bigger picture is that I am still trying to be positive about the "GTK as a universal GUI" idea - even with the currently depressing performance revelations... but I think making GTK look as good and be as fast as possible *on Windows* is key to the viability of this notion.

After Neil's comment about possibly doing some caching for things like operators and keywords, I started looking over how Scintilla uses Pango (this is all in the gtk subdirectory).

The first thing is that [I think] Scintilla is using a fairly "heavy weight" Pango interface for relatively "light weight" needs... IIRC, Neil mentioned this himself quite a while ago - but I could be wrong about this. In any case, the PangoLayout machinery being used is able to do entire [possibly bi-directional] paragraphs, while Scintilla only uses it for [at the most] single lines - and usually far less. Again, I *think* Neil said that using this high-level interface was a convenience issue [for him]. Comments or corrections?

So I have two approaches which are not mutually exclusive, and which would both be of the good old conditional compile variety (based on the PLAT_GTK_WIN32 symbol): the first is indeed to look at caching oft-used glyph strings, while the second is more of a question mark - why *not* use more of the Pango machinery for rendering and font handling, especially since there seems to be "Win32-ized" versions of this functionality?

Finally, I am having a conceptual/code-sleuthing problem with Scintilla, Pango, and fonts - all I see is the very high-level abstract font description stuff... I do not see where this is made concrete. Put a different way, Pango has the abilities to directly understand and use both Win32 [I assume this means TrueType] and FreeType fonts (and something called OpenType also)... but I do not see any of these [lower-level or more specific] calls being made. What's the deal here? :)

Thanks for any illumination of any of this... it doesn't even look all that hard to work on/with, but the right model is [naturally] all. ;)

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to