Robert Roessler: > 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?
Scintilla breaks text drawing up into individual runs with one style. You could attempt to replace this with a model where you build a paragraph up in Pango setting styles for regions in that paragraph before drawing the whole paragraph. Its worth trying (but not by me) although it may be difficult to provide all of the features. I think Pango only has a couple of underline/strikethrough attributes which may not match Scintilla indicators and the control character symbols may be displayed differently. It will also be difficult to match this API with other platforms.On Windows you may be able to use the Rich Edit Control or on of the HTML controls. All platforms will provide a low level string drawing function. > 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? :) IIRC there are some subdirectories with font system drivers. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
