Skip to content

v0.0.5

Choose a tag to compare

@sammycage sammycage released this 11 Feb 11:14
· 56 commits to master since this release

FreeType SVG hooks are now located in a dedicated header file, plutosvg-ft.h. This change means you no longer need to define PLUTOSVG_HAS_FREETYPE during compilation. Separating the FreeType dependency from the core PlutoSVG build can help avoid configuration issues—such as the 0x06 error from FT_Set_property—and gives you more control over how you integrate FreeType.

To use the FreeType SVG hooks in your project, update your code as follows:

#include <plutosvg-ft.h>

// Configure FreeType to use PlutoSVG's SVG hooks:
FT_Property_Set(library, "ot-svg", "svg-hooks", &plutosvg_ft_hooks);

In summary, by moving the SVG hooks into plutosvg-ft.h, you can manage the FreeType integration independently from the PlutoSVG build.