[Fontconfig] Did You Know That FT_Done_Face Can Return An Error?

Akira TAGOH akira at tagoh.org
Mon May 7 03:09:11 UTC 2018

All of the usage of freetype functions in fontconfig is completed in a
function and no exports. at that limited situation, the possibility of
failing finalizer is quite unlikely. even if it does, it might be
already failed on others or most of tasks to return a result is
already done. checking a return value of those functions doesn't make
sense IMHO.
That said this is the case-by-case. it wouldn't be a reason to ignore
for others.

On Sun, May 6, 2018 at 8:48 AM, Lawrence D'Oliveiro
<ldo at geek-central.gen.nz> wrote:
> I notice that Fontconfig ignores possible error returns from
> FT_Done_Face and FT_Done_FreeType (cf src/fcdir.c, src/fcfreetype.c).
> Would you say this was wise? There seems to be a difference of opinion
> on the FreeType list
> <http://lists.nongnu.org/archive/html/freetype/2018-05/threads.html>
> about it.
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig


More information about the Fontconfig mailing list