From: Simon Strandgaard Date: 2004-07-06T00:46:09+09:00 Subject: Re: [ANN] aeditor 1.0 released On Monday 05 July 2004 16:40, Kaspar Schiess wrote: > | on windows there are font problems.. you can make me happy if you can > | make solve this problem. Thanks in advance. > > Making you happy: > @font.create is not executed before onCanvasPrepare, and the font thusly > accessed is invalid, causing segmentation fault. Solution proposed: Wonderful! > def create > read_registry > super # this is where it looses control > @font_created = true > @font.create > @back_buffer.create > @canvas.setFocus > update_title > end > > and then a > > return unless @font_created I had assumed that #create was invoked before anything else. but not realized this could be a problem.. (even though I have tried on 2 of my friends windows boxes.. changing random things in the code). > in onCanvasPrepare (at the very start). Problems with this solution are: > a race condition exists. You would have to do that with a semaphore or > other. I will browse fox's souce code to investigate this further. > The speed of the whole editor seems to be very slow under windows with > Fox. how slow? there is outputed timing information to the console. may I ask about details. one time when I tried on windows I had really poor performance. it took 10 seconds to render one frame. On my 700MHz linux box it takes 0.05 seconds to lex+render one frame. I have no explanaition if the slowdown is greater than 1 second. Suggestions how to track it down are appreciated. > Can I ask you again to the exact reason why another fully evolved > editor like SciTE will not do ? Im obsessed by ruby. I want to be able to write plugins in Ruby. I want to be able to do changes in the editor core via plugins. It is not possible with Scintilla to have so much freedom in the plugins. What I want is maybe emacs ala ruby? At some point it could be interesting to integrate my editor widget into freeride, and see what happens. > > best regards, > > kaspar Thanks Kaspar for making me happy :-) -- Simon Strandgaard