freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] GSoC: OT-SVG: Brief Update Week 6


From: Werner LEMBERG
Subject: Re: [ft-devel] GSoC: OT-SVG: Brief Update Week 6
Date: Wed, 17 Jul 2019 22:42:55 +0200 (CEST)

> 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



reply via email to

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