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 primitivefill
- fill in the area of the text. Only solid colors!font
- name (or key) of font to usefont_size
- point size of the fontfont_blur
- option to blur the characterstext_align
- alignment of lines of texttext_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()
View Source
valid_styles() :: [
:fill
| :font
| :font_blur
| :font_size
| :hidden
| :text_align
| :text_height,
...
]
valid_styles() :: [ :fill | :font | :font_blur | :font_size | :hidden | :text_align | :text_height, ... ]
Returns a list of styles recognized by this primitive.