Robert Roessler wrote:
This question was just about how asking Pango to use its *paragraph* layout machinery when Scintilla doesn't really need that level of functionality seems to be [possibly expensive] overkill...
Part of the reason is that pango's layout objects are what is most widely used and what has been documented. Keep in mind that the behavior of one of the calls scintilla does use changed recently, which necessitated changes in scintilla.
That said, I've been tempted to go around the layout objects, though I've always concluded that there was lower-hanging fruit in the optimization of gtk / pango itself. I've also thought of caching line layouts in the scintilla layout cache, but haven't because it requires some reworking of the cache to contain platform specific references. You also might see if there's an easy way to bypass the bidi direction checking, if this is still an issue with the newer pango libraries.
This was driven off of the fact that while Pango supports a mess of calls of the form pango_{ft2,win32}_{font,render}...,
You probably don't want to use the backend specific calls because the code becomes dependent on what backend is in use.
You might want to profile and see where the time is going. John _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
