Scenic v0.10.2 Scenic.Primitive.Text View Source

Draw text on the screen.

Data

text

The data for a Text primitive is a bitstring

  • text - the text to draw

Styles

This primitive recognizes the following styles

  • hidden - show or hide the primitive
  • fill - fill in the area of the text. Only solid colors!
  • font - name (or key) of font to use
  • font_size - point size of the font
  • font_blur - option to blur the characters
  • text_align - alignment of lines of text
  • text_height - spacing between lines of text

Usage

You should add/modify primitives via the helper functions in Scenic.Primitives

Link to this section Summary

Functions

Returns a list of styles recognized by this primitive

Link to this section Functions

Link to this function

valid_styles() View Source
valid_styles() :: [
  :fill
  | :font
  | :font_blur
  | :font_size
  | :hidden
  | :text_align
  | :text_height,
  ...
]

Returns a list of styles recognized by this primitive.