freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] GSoC: OT-SVG: Brief Update Week 6


From: Moazin Khatri
Subject: Re: [ft-devel] GSoC: OT-SVG: Brief Update Week 6
Date: Wed, 17 Jul 2019 23:43:51 +0500

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]