> It is supposed to work from an environment variable
> FREETYPE_PROPERTIES too.  So please use:
> 
> FT_Property_Get( library, "svg", "svg_library", "librsvg"  );
> FT_Property_Get( library, "svg", "svg_library", "resvg"  );
> 
> and then hide the presets and consider proper default initialization
> as a part of FT_Int_FreeType to whatever you prefer.

This is not how it will work.  Moazin did it right.  Handling the
`FREETYPE_PROPERTIES' environment variable is something that has to be
coded separately.

For example, the setting

  set FREETYPE_PROPERTIES=svg:renderer=foo

might internally map to the function hooks

  foo_init_svg
  foo_free_svg
  foo_render_svg

or something like that.

On the other hand: Do we *really* need to use an environment variable
to control which SVG engine gets used?  This looks like overkill to
me.  If there is ever a desire to do that, we could add it later.


    Werner

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

Reply via email to