freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Using ROM to save run time memory


From: David Turner
Subject: Re: [Freetype] Using ROM to save run time memory
Date: Fri, 07 Dec 2001 01:15:14 +0100

Hello Nir,

Nir Rostoker a écrit :
> 
> Hi !
> I wish to use FreeType2 on a real time application. As far as I have seen
> the minimum memory requirements are around 35K (using only the needed
> modules). This amount of RAM memory is problematic to me.
>
Well, well, did you check the FT_RENDER_POOL_SIZE configuration macro
in "ftoption.h". It is used to define the size of the "work area" used
by the various rasterizers. it's default size is 32 Kb, but you can
reduce it to 4 Kb (this will slow down outline rasterizaion a little).

Actually, if you don't need scalable font drivers, you can also set it
to 0.. !!
 
> Can I load the Engine and  Face objects to the ROM, before running (assuming
> that I know advance the kind of fonts I will
> use) ?
>
You cannot load them in ROM, because they need to be updated in various
ways during runtime. One option is to load the font in memory and use
FT_New_Memory_Face (instead of FT_New_Face) to open them..

Hope this helps,

- David



reply via email to

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