Re: [AD] SF.net SVN: alleg:[11327] allegro/branches/4.9/addons/ttf/ttf.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


2008/12/17  <elias@xxxxxxxxxx>:
> Revision: 11327
>          http://alleg.svn.sourceforge.net/alleg/?rev=11327&view=rev
> Author:   elias
> Date:     2008-12-17 07:42:31 +0000 (Wed, 17 Dec 2008)
>
>
> -static ALLEGRO_BITMAP* create_glyph_cache(ALLEGRO_FONT const *f, int w, int h, bool new)
> +// FIXME: We normally do *not* want to cache the complete font as is
> +// done right now. Just image when I load a unicode font, then write the
> +// game title in big letters (say pixel size 200) on the start screen.
> +// This would right now eat up 100ds of MBs of texture space for
> +// nothing Probably we should have a config setting to enable caching of
> +// a complete font though for special cases where it is wanted.

Notice that create_glyph_cache() is called only for rendered glyphs,
not for all glyphs in a font.



-- 
Milan Mimica
http://sparklet.sf.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/