[cairo] cairo_font_face_t not freeing
Fred Bca
fredbca21 at gmail.com
Thu May 18 12:22:51 UTC 2017
This looks like the issue that I encountered last year with the
holdovers cache. The cairo font cache works fine and is necessary for
performance, BUT it also keeps a list of fonts that have been recently
released which are not used anymore (+ a most recently used font).
While this can be useful at the application level, I
don't think that it belongs to cairo as is, since it keeps some fonts
alive forever, with no control over it as far as I know.
More information and a patch for a quick fix can be found here:
https://lists.cairographics.org/archives/cairo/2016-April/027349.html
It would be nice if we can come up with a solution to fix this that is
accepted by the community. A compile-time option or runtime API to
disable / control this behavior for example?
On Sun, May 7, 2017 at 4:13 PM, Louis M <prog at tioui.com> wrote:
> On 05/05/2017 10:42 AM, Uli Schlachter wrote:
>> I'm not completely sure how this cache works, but I doubt that it "keeps
>> to things" indefinitely. It might even just be a most-recently-used
>> cache so that it only ever keeps one font alive - I'm not sure.
>
> Ok, Thanks. This is reassuring. I will try to do some testing.
>
> Good day,
>
> Louis M
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
More information about the cairo
mailing list