View Source Resvg.Options (resvg v0.4.0)

Options for Resvg.

Summary

Types

@type image_rendering() :: :optimize_quality | :optimize_speed
@type resvg_options() :: [
  width: non_neg_integer(),
  height: non_neg_integer(),
  zoom: float(),
  dpi: 10..4000,
  background: String.t(),
  languages: [String.t()],
  shape_rendering: shape_rendering(),
  text_rendering: text_rendering(),
  image_rendering: image_rendering(),
  resources_dir: Path.t(),
  font_family: String.t(),
  font_size: non_neg_integer(),
  serif_family: String.t(),
  sans_serif_family: String.t(),
  cursive_family: String.t(),
  fantasy_family: String.t(),
  monospace_family: String.t(),
  font_files: [Path.t()],
  font_dirs: [Path.t()],
  skip_system_fonts: boolean()
]
@type shape_rendering() :: :optimize_speed | :crisp_edges | :geometric_precision

The options for resvg functions.

@type text_rendering() ::
  :optimize_speed | :optimize_legibility | :geometric_precision