On Wed, Jul 17, 2019 at 8:44 PM Moazin Khatri <moazinkha...@gmail.com> wrote: >> >> 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
trye to add in between : (void(*)()) Vincent Torri > 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 _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel