On Wed, 11 May 2011 19:49:39 +0100, Michael Drake wrote: > In article > <out-4dcacc98.md-1.4.17.chris.yo...@unsatisfactorysoftware.co.uk>, > Chris Young <chris.yo...@unsatisfactorysoftware.co.uk> wrote: > > > a gap of around 20s appears in the log between NetSurf starting > > execution and fetching the homepage > > How about if you make your nsfont_width implementation simply: > > *width = 10; > return true;
That's better, down to about 3 seconds. So I need to rewrite nsfont_width to be faster, or...? At the moment I'm effectively plotting the text (without actually plotting it) as I can't see any other way to work out the width of a string, at least with kerning enabled. I'll admit my font code is a mess, I did start tidying it up but stopped short of the main routines as they tend to give me a headache. Chris