# `Figler.Render.Options`
[🔗](https://github.com/open-pencil/figler/blob/v0.1.0-beta.3/lib/figler/render/options.ex#L1)

Validation and types for the public rendering option contract.

Unknown options and malformed values return
`{:error, {:invalid_render_options, errors}}`, where each error contains the
option name, a stable code, and the rejected value.

# `error`

```elixir
@type error() :: Figler.OptionError.t()
```

# `option`

```elixir
@type option() ::
  {:root, String.t() | non_neg_integer()}
  | {:page, String.t() | non_neg_integer()}
  | {:graph, keyword()}
  | {:scale, number()}
  | {:background,
     :black
     | :white
     | :red
     | :green
     | :blue
     | :transparent
     | String.t()
     | {0..255, 0..255, 0..255}
     | {0..255, 0..255, 0..255, 0..255}}
  | {:format, :png | :jpeg | :webp | :raw}
  | {:quality, 0..100}
  | {:strict, boolean()}
  | {:fallback_font_paths, [String.t()]}
  | {:fallback_typefaces, [term()]}
  | {:font_languages, [String.t()]}
  | {:system_font_fallback, boolean()}
```

# `validate`

```elixir
@spec validate(keyword()) :: :ok | {:error, {:invalid_render_options, [error()]}}
```

Validates public rendering options.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
