wesnoth-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-dev] prerendering fonts


From: ott
Subject: [Wesnoth-dev] prerendering fonts
Date: Thu, 15 Sep 2005 13:50:26 +0200
User-agent: Mutt/1.5.10i

A while back Dave speeded up the text drawing routines by using a more
efficient word fitting algorithm.  However, for long pieces of text there
is still a discernible delay in drawing.  Just wanted to point out some
C++ code posted by Bob Pendleton to the SDL list which prerenders vector
format TTF fonts at initialization, for post 1.0:
    http://www.devolution.com/pipermail/sdl/2004-December/066119.html
    http://www.devolution.com/pipermail/sdl/2004-December/066130.html

This requires some care to ensure the format of the rendered version
matches the format used for the display, so that the prerendered versions
don't trigger on-the-fly image conversion and thereby destroy the saving.

-- address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]