On Wed, 11 May 2011 19:49:39 +0100, Michael Drake wrote:
Chris Young <chris.young(a)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;
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.