Using `FT_Property_Set' instead of `FT_Set_SvgHooks' is a good
suggestion, thanks! Moazin, what do you think? We would have one API
function less.
https://www.freetype.org/freetype2/docs/reference/ft2-properties.html
I just implemented
this. It works on my machine but there are compiler
warnings. Turns out, conversions of the sort:
+ renderer->hooks.init_svg = (SVG_Lib_Init_Func)value;are forbidden by ISO C. Basically, conversions from
(void*) --> function pointer
The warning message is:
ISO C forbids conversion of object pointer to function pointer type [...]
The function `FT_Property_Set' takes a `const void*' and this can't be
changed. Any possible workaround?