freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Reducing the RAM size


From: David Turner
Subject: Re: [Freetype] Reducing the RAM size
Date: Thu, 11 Apr 2002 17:13:38 +0200

Hi Nir,

Nir Rostoker a écrit :
> 
> Hi!
> 
> I have noticed that many tables from the font file are loaded to the RAM
> when a Face object is created (the charmap table, many metrics and so on)
> while other tables like the Glyph ones are loaded only when needed (on the
> LoadGlyph() function).
>
That's true. Certain tables are pre-loaded for performance reasons, since 
re-parsing
them on each glyph load could be problematic. This isn't true of all of them 
however
and I've started to change that.

If you look at the code in the HEAD branch of the CVS, you'll notice that FT2
no longer loads the charmap tables as it did. Instead, it directly parses it.
Performance is kept acceptable by only loading the raw 'cmap' table when the
file is not directly accessible from memory, so that it won't use any heap
memory in the case of ROM fonts..

The same change can be applied to quite a number of other tables (it is also
already applied to some TrueType ones as well), and I intend to continue in
this direction in the coming months..

However, don't expect any date, commitment, or anything regarding this..


Regards,

- David Turner



reply via email to

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