Mikhail V:
> A related question - is the position calculation after a mouse click
> is performed fully by Scintilla, or it relies on some 3d party calls?
> Does Scintilla build and access glyph anchor coordinate sets?
Its a combination of Scintilla’s idea of how the text should be laid out and measurements from the platform layer of the positions of each character in single-style segments of text. The most important call for layout is Surface::MeasureWidths.
> From what I observe in NPP, for example with Arabic input, it behaves
> same as in some native Windows widgets, so this suggests that Scintilla
> relies on 3d party functionality, i.e. some Windows subsystem.
> Am I right?
Scintilla’s behaviour with Arabic input on Windows is currently wrong which is the subject of the “Adding R2L…” thread. The R2L patch set changes the way that layout is performed by depending more on platform calls which understand bidirectional layout.
Neil