>
> 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
<https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?h=hooks-via-module-property&id=d94f52b0c698b7358210c13988ccaf6a8d25afc8>.
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?
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to