freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] FT_Done_MM_Var + FT_Library


From: Werner LEMBERG
Subject: Re: [ft-devel] FT_Done_MM_Var + FT_Library
Date: Wed, 04 Jul 2018 06:29:09 +0200 (CEST)

>> the most natural choice was `FT_Library'.
> 
> I see.  Judging from an API user's perspective (and from a rather
> special angle, maybe not THE standard usage) I think I would've
> preferred to rather use an `FT_Face' as additional parameter instead
> of `FT_Library' since I need that `FT_Face' anyways to get
> `FT_MM_Var' from `FT_Get_MM_Var' in first place.  Further, it would
> create some kind of parameter symmetry between getting + freeing
> `FT_MM_Var'.  This is highly biased of course.

It's too late to change that.

Note, however, that you can use

  face->glyph->library

since FreeType always creates an `FT_GlyphSlot' object if the face
index is >= 0.  In other words, it is not necessary to carry both
`FT_Face' and `FT_Library'.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]