View Source Image.Options.Text (image v0.33.0)
Options for text drawing.
Link to this section Summary
Link to this section Types
@type t() :: [ font: String.t(), font_size: pos_integer(), text_fill_color: Image.Color.t(), text_stroke_color: Image.Color.t(), text_stroke_width: pos_integer(), font_weigtht: atom(), background_fill_color: Image.Color.t(), background_stroke_color: Image.Color.t(), background_stroke_width: pos_integer(), background_stroke_opacity: float(), background_fill_opacity: float(), padding: [non_neg_integer(), ...], x: :center | :left | :right, y: :middle | :top | :bottom, autofit: boolean(), width: pos_integer() | nil, height: pos_integer() | nil, fontfile: String.t() | nil, align: :left | :right | :center, justify: boolean() ]
Link to this section Functions
Validate the options for Image.Text.text/2
.