|
From: Martin H. <mar...@si...> - 2011-12-01 08:19:50
|
Dear All, We are realising that integrating graphite2 can be made more pleasant. Currently, the application passes a getTable function to graphite by which graphite gets font tables. Unfortunately, this means that any memory allocated by getTable to hold that loaded table has to be managed by the application and held until the grface is destroyed. To alleviate some of this pain, we would like to add an extra function that an application can pass which will be a freeing function that is called by graphite to say that it no longer holds any interest in a particular table. Given that we can make it that Graphite only loads a table of any given type once, an application can allocate memory for a table in getTable, pass that to Graphite, forget it and then free it when Graphite tells it its done. This makes table management much easier for the application. The question is this: do we change the existing api to add the extra function reference to gr_make_face or do we introduce a new gr_make_face_free or somesuch (ideas welcomed) that will take the extra function, leaving gr_make_face as it was and not breaking backward compatibility? TIA, Yours, Martin |