Martin Vermeer wrote: > Hmmm... does this cover the case where you create an ERT, insert some > text, delete this text again and insert some new text?
I don't remember if I tried that (will try later), but I think that it covers that case. My theory is: The font of newly inserted text at the end of a paragraph is the font of the last dummy font change in that paragraph. New paragraphs inherit the font of the owning LyXText. Text inserted in the middle of a paragraph gets of course the font that is active there. If this theory is correct, then my patch will always work. > My patch places a > current_cursor stanza into doDispatch/default for this. If you do this, > you can again dump the corresponding stanza in init(). I don't understand the reason for putting it there. Why change the font for every invocation of doDispatch and not once in the constructor? Can it be changed from outside? Georg
