Module material.typography
Get font objects and draw text using material theme
Functions
getDisplay (size) | Gets the display font |
getHeadline (size) | Gets the headline font |
getTitle (size) | Gets the title font |
getLabel (size) | Gets the label font |
getBody (size) | Gets the body font |
label (content, font_variant, x, y, font_size) | Draws a label using material theme |
Functions
- getDisplay (size)
-
Gets the display font
Parameters:
- size "large", "medium" or "small"
- getHeadline (size)
-
Gets the headline font
Parameters:
- size "large", "medium" or "small"
- getTitle (size)
-
Gets the title font
Parameters:
- size "large", "medium" or "small"
- getLabel (size)
-
Gets the label font
Parameters:
- size "large", "medium" or "small"
- getBody (size)
-
Gets the body font
Parameters:
- size "large", "medium" or "small"
- label (content, font_variant, x, y, font_size)
-
Draws a label using material theme
Parameters:
- content
A string with the text or a table with the following values:
- icon The icon of the button
- text The text of the button
- font_variant "display", "headline", "title", "label" or "body"
- x The position in x-axis
- y The position in y-axis
- font_size "large", "medium" or "small"
- content
A string with the text or a table with the following values: