On Friday, 7 July 2023 at 20:34:38 BST, Hin-Tak Leung <htl10@users.sourceforge.net> wrote:
Hi Werner,
3 patches, one for freetype2, and two for freetype2-demos (the rsvg one is a re-post).
None of them are anything critical. I think I'd really like the rsvg one to go in, if only to stay sync with the corresponding python code in freetype-py/examples. I am also very sure you do not want it to go in as currently is; you most likely want to code the same idea in a different way - but it is a start.
The freetype2 one is a discovery from rebasing the Fontval diff. The 3rd one in ft2-demos is sort of in the same area, and recent thoughts on RendererHook's and DebugHook's signatures.
One thing I'd like to suggest, if FreeType 3 is ever happening, is for the DebugHook to move a bit earlier in the Library struct, and especially before any of the variable/adjustable sized sub-structures. It makes implementing interactive font debuggers / font editors with FreeType 3, and things like Fontval, in a non-C language, a bit easier.
Yes, I briefly thought of expanding freetype-py, and re-writing ttdebug in python. It cannot happen (easily... alway a matter of how much pain/trouble one wants to bear...) for the reason above :-). And same with FontVal-RX - the next stage of FontVal, with dual freetype and microsoft backends.
Hin-Tak