Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
custom:thedrawfonts [2025/04/24 18:37] – [tdfiglet.js] add -m option digital man | custom:thedrawfonts [2025/04/24 18:40] (current) – [Options] Add margin option digital man | ||
---|---|---|---|
Line 59: | Line 59: | ||
You can pass several options to tdfonts using the opt object. | You can pass several options to tdfonts using the opt object. | ||
- | ^ Property ^ Description | + | ^ Property ^ Description |
- | | justify | Determine the position of the text on the screen. You can use LEFT_JUTIFY | + | | justify | Determine the position of the text on the screen. You can use LEFT_JUSTIFY |
- | | width | Define | + | | margin |
+ | | width | ||
| ansi| Determines if output should use ANSI terminal escape sequences | '' | | ansi| Determines if output should use ANSI terminal escape sequences | '' | ||
| utf8 | Whether output encoding should use UTF-8 | '' | | utf8 | Whether output encoding should use UTF-8 | '' | ||
| info | Print information about the font such as its name and available characters | '' | | info | Print information about the font such as its name and available characters | '' | ||
- | | random | Use a random font. A fontname need to be specified when using random | '' | + | | random | Use a random font. A fontname need not be specified when using the random |
- | | index | 0 based index of the font within the font file | '' | + | | index | 0 based index of the font within the font file | //random// or '' |
===== See Also ===== | ===== See Also ===== |