[Top][All Lists]

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

Re: [ft-devel] controlling FreeType modules

From: Miles Bader
Subject: Re: [ft-devel] controlling FreeType modules
Date: Wed, 22 Aug 2012 17:57:15 +0900

2012/8/22 Werner LEMBERG <address@hidden>:
>> But since (AFAICT) the property mechanism is generic, the type of
>> the data structure wouldn't be known except to the eventual caller
>> of FT_Property_Get.  Given this, how can FT_Property_Set know the
>> size of the data structure passed in, to malloc/copy it?
> The property mechanism has a generic interface to accept any data
> structures so that it stays extensible, but the data structures
> themselves aren't generic; they are always controlled by FreeType.

Sure.  I'm just confused how FT_Property_Set figures out the length,
presuming it's FT_Property_Set that does the copying (I'm guessing it
would have to be, as the caller of FT_Property_Set is outside of
freetype, and the actual point of use of the data structure, which
obviously would know the type, is too late).



Cat is power.  Cat is peace.

reply via email to

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