[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Freetype memory allocation
From: |
Vincenzo NZ |
Subject: |
Re: [ft] Freetype memory allocation |
Date: |
Fri, 8 Sep 2017 23:02:45 +0200 |
Hi Lawrence,
I have no idea how add more glyph slots to the face object.
Do you think that using freetype cache mechanism (e.g.
FTC_ImageCache_Lookup ) with bitmap object can help me? I tried to use FTC
but for example I didn't understood the FTC_ImageType
<https://www.freetype.org/freetype2/docs/reference/ft2-cache_subsystem.html#FTC_ImageType>
type
parameter. If this can help me, can you provide an example/snippet code?
2017-09-08 23:01 GMT+02:00 Vincenzo NZ <address@hidden>:
> Hi Lawrence,
> I have no idea how add more glyph slots to the face object.
> Do you think that using freetype cache mechanism (e.g.
> FTC_ImageCache_Lookup ) with bitmap object can help me? I tried to use FTC
> but for example I didn't understood the FTC_ImageType
> <https://www.freetype.org/freetype2/docs/reference/ft2-cache_subsystem.html#FTC_ImageType>
> type
> parameter. If this can help me, can you provide an example/snippet code?
>
> Vincenzo
>
> 2017-09-08 22:05 GMT+02:00 Lawrence D'Oliveiro <address@hidden>:
>
>> On Fri, 8 Sep 2017 21:21:13 +0200, Vincenzo NZ wrote:
>>
>> > The problem is that freetype at every new loop deallocates the
>> > memory allocated for the bitmap invalidating the address passed to
>> > *my_draw_bitmap*.
>>
>> Would glyph slots help with this? Only I couldn’t find any API for
>> actually adding them...
>>
>> _______________________________________________
>> Freetype mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/freetype
>>
>
>