Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| custom:thedrawfonts [2025/04/24 15:34] – Explain there's a utility (tdfiglet.js) and a library digital man | custom:thedrawfonts [2026/02/19 09:18] (current) – [Example] fix small typo nelgin | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== tdfiglet.js ===== | ===== tdfiglet.js ===== | ||
| - | There is a utility script included with Synchronet for using TheDraw Font files to generate | + | There is a utility script included with Synchronet for using TheDraw Font files to generate |
| < | < | ||
| - | usage: [options] input | + | usage: |
| -f [font] Specify font file used. | -f [font] Specify font file used. | ||
| -j l|r|c Justify left, right, or center. Default is left. | -j l|r|c Justify left, right, or center. Default is left. | ||
| - | -w n Set screen width. Default is 80. | + | -w n Set screen width. Default is auto-detect or 80. |
| + | -m n Set margin/ | ||
| -a Color sequences: ANSI. Default is Synchronet Ctrl-A. | -a Color sequences: ANSI. Default is Synchronet Ctrl-A. | ||
| -u Encode charaters as UTF-8. Default is CP437. | -u Encode charaters as UTF-8. Default is CP437. | ||
| Line 27: | Line 28: | ||
| ==== Example ==== | ==== Example ==== | ||
| - | Please keep in mind the interface | + | Please keep in mind the interface to the library may change since this is a new feature. |
| < | < | ||
| Line 58: | 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 ===== | ||