Module SvgLib.Svg

This modules implements the cheapest interface to allow for having an acg version that behaves correctly, whether the optional dependency cairo2 is available or not

type config

The abstract type for the svg config

val has_cairo : bool

has_cairo is true if cairo2 was available at build time and false otherwise.

val get_config : filename:string option -> dirs:string list -> config

get config ~filename ~dirs returns a config file made of the json file specified with filename and dirs. If the former is None, returns a default configuration.

val dump_svg : svg_output:string -> AcgData.Signature.Data_Signature.term -> index:int -> AcgData.Acg_lexicon.Data_Lexicon.t list -> config:config -> unit