[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] How can I Minimize Heap Size in Freetype 2.6?
From: |
Werner LEMBERG |
Subject: |
Re: [ft] How can I Minimize Heap Size in Freetype 2.6? |
Date: |
Sat, 20 Jun 2015 06:32:16 +0200 (CEST) |
> I was using freetype 2.4 version in my embedded application for
> rendering ttf files only. It uses about 12 KB heap size, when I set
> FT_RENDER_POOL_SIZE to 4096 Bytes. But in freetype 2.6 ,it takes
> around 20 KB heap size minimum. Here I could observe ,freetype 2.6
> doesn't use raster_pool anymore.
Yes, Behdad rewrote the B/W rasterizer code to make it thread-safe.
It is possible that due to that change a larger heap size is
necessary.
> 1. What is the minimum heap size needed for freetype to rasterize
> ttf files as a binary image? (I don't need smoothing and gray
> shades)
>
> 2. How can I minimize heap size in freetype 2.6 for this purpose?
Behdad, can you answer these two questions?
Werner