2012/8/22 Werner LEMBERG <w...@gnu.org>: >> 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). Thanks, -miles -- Cat is power. Cat is peace. _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel