freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Pr


From: Werner LEMBERG
Subject: Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function.
Date: Thu, 22 Aug 2019 18:02:49 +0200 (CEST)

> You have to implement (and maintain) hooks instead of maintaining
> renderer modules. You are asking secondary libraries to implement
> hooks instead of the renderer module.  There is nothing absolutely
> nothing easier, or more logical, or simpler.  It buys you absolutely
> nothing!!!

I disagree.

> Given that hooks do not exist and have to be implemented, my
> question remains.  Why hooks are better than modules?  Werner, why?

Just imagine that a user wants to use the brand-new `foosvg' library
with FreeType.  Using hooks, he can quickly write a few lines of code
to implement the hook callback functions, then registering them.
Done.

On the other hand, writing a new renderer module needs FreeType's
internal header files – which no user code should ever rely on.

I honestly don't know whether it works at all to load a user-compiled
module into FreeType.  AFAICS, the library was not set up to manage
externally compiled modules.


    Werner

reply via email to

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