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: Vincent Torri
Subject: Re: [ft-devel] GSoC: OT-SVG: Brief Update Week 6
Date: Wed, 17 Jul 2019 21:26:52 +0200

On Wed, Jul 17, 2019 at 8:44 PM Moazin Khatri <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel



reply via email to

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