[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Updates for gf driver.
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Updates for gf driver. |
Date: |
Mon, 09 Jul 2018 17:26:12 +0200 (CEST) |
>> BTW, why are you allocating so much memory blocks? `ftexample.c'
>> asks for a single character, I thus expect that the GF driver loads
>> only a single glyph...
>
> Oh, this may be because of 128 glyph objects + 1 GF_Glyph object.
> Actually, the GF driver always allocates 256 blocks for the glyph
> bitmaps to be loaded and then according to the font file it
> initializes the required blocks. So, when `ftexample.c' asks for a
> character it first loads all the initialised glyphs and then
> extracts the correct one.
This is bad. Please change the code to load a bitmap only on demand!
There is absolutely no reason to load all 256 bitmaps at once.
Werner
Re: [ft-devel] Updates for gf driver., Parth Wazurkar, 2018/07/09
- Re: [ft-devel] Updates for gf driver., Werner LEMBERG, 2018/07/09
- Re: [ft-devel] Updates for gf driver., Parth Wazurkar, 2018/07/09
- Re: [ft-devel] Updates for gf driver., Werner LEMBERG, 2018/07/09
- Re: [ft-devel] Updates for gf driver., Parth Wazurkar, 2018/07/09
- Re: [ft-devel] Updates for gf driver., Parth Wazurkar, 2018/07/09