[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
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., (continued)
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/20
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function.,
Werner LEMBERG <=
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Alexei Podtelezhnikov, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/23
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Behdad Esfahbod, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/21
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Werner LEMBERG, 2019/08/22
- Re: [ft-devel] [freetype2] hooks-via-module-property d94f52b: Use `FT_Property_Set' to set the hooks. One less API function., Moazin Khatri, 2019/08/23