Commit Graph

2 Commits

Author SHA1 Message Date
jasonwitty
6ff4a5e4b0 ASCII text drawer: robust font loading with HTTPS CDN fallback and local 'Standard' font
- Switch figlet font base to HTTPS (unpkg) with jsDelivr fallback.
- Explicitly load selected font before rendering via figlet.loadFont.
- Bundle the 'Standard' font locally via figlet/importable-fonts/Standard.js and register with figlet.parseFont.
- Retry logic: try selected font, fall back to 'Standard', then next CDN; remember last working CDN in local storage.
- Guard width/input defaults to avoid invalid options.

This fixes intermittent 'Current settings resulted in error.' when CDN fetch fails or fonts were not preloaded.
2025-09-16 18:48:21 -07:00
sharevb
fe349ad69b
feat(new tool): ascii art generator (#886)
* feat(new tool): ascii art generator

Fix #829 ; Text ASCII Art Generator (using figlet)

* fix: make fonts list searchable

* refactor(ascii-generator): updated tool definition

* refactor(ascii-generator): equilibrate ui

---------

Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
2024-03-03 10:37:09 +00:00