- Source:
Methods
(static) fontScale(element, width) → {Promise.<Int>}
Scale an element's font size to fit inside the given width.
Parameters:
| Name | Type | Description |
|---|---|---|
element |
HTMLElement | |
width |
Int | defaults to |
- Source:
Returns:
resulting font size in px
- Type
- Promise.<Int>