>> If you say `rendering port', you mean code that gets added to
>> librsvg, to FreeType, or to the calling application?
> 
> I mean the hook functions which the client will write and set them
> using `FT_Property_Set'.  These will of course be different for each
> library.  Have a look here:
> https://bitbucket.org/moazin/librsvg-port-freetype-otsvg/src/master/port/rsvg_port.c
> and search `FT_THROW' in that file.

OK, thanks.

>> I'm not sure whether it makes sense to define error codes for
>> external stuff that is not directly used by FreeType.  Maybe you
>> just return values like -1 or -2 as error codes?

Silly me.  Please ignore this remark.  Of course it makes sense to set
up FT_Error codes as you did – it is FreeType who is going to report
the hook errors to the client.

So yes, please define errors and use them in the external code, but
just without FT_THROW.  Maybe the library uses its own error code
debugging feature...


    Werner
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to