Ratex.Options (Ratex v0.1.0)

Copy Markdown View Source

This struct is used to encapsulate all of the rendering options that the Ratex library supports. This struct is serialized via Rustler and passed directly to the NIF library.

Summary

Functions

Create a new options struct from a list/map.

Types

t()

@type t() :: %Ratex.Options{
  color: String.t(),
  font_size: float(),
  inline: boolean(),
  pixel_ratio: float() | nil,
  unicode_font_path: String.t() | nil
}

Functions

new(opts)

Create a new options struct from a list/map.