From 6ff4a5e4b0ea9bf498426ae590bbc12bc20b1013 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Tue, 16 Sep 2025 18:48:21 -0700 Subject: [PATCH] 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. --- .../ascii-text-drawer/ascii-text-drawer.vue | 97 +++++++++++++++---- 1 file changed, 79 insertions(+), 18 deletions(-) diff --git a/src/tools/ascii-text-drawer/ascii-text-drawer.vue b/src/tools/ascii-text-drawer/ascii-text-drawer.vue index 9a6520a4..7fa61b6b 100644 --- a/src/tools/ascii-text-drawer/ascii-text-drawer.vue +++ b/src/tools/ascii-text-drawer/ascii-text-drawer.vue @@ -1,5 +1,11 @@