Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text to ASCII Art Generator unable to fetch fonts #1546

Open
artyPD opened this issue Mar 31, 2025 · 7 comments
Open

Text to ASCII Art Generator unable to fetch fonts #1546

artyPD opened this issue Mar 31, 2025 · 7 comments
Assignees
Labels
bug Something isn't working triage

Comments

@artyPD
Copy link

artyPD commented Mar 31, 2025

Describe the bug

Initial page load throws Current settings resulted in error. Changing the font or width makes no difference:

Image

What happened?

It seems the page is unable to fetch any fonts. Issues persist across all browsers listed below:

Image

System information

System:

  • OS: Windows 11 10.0.26100
  • CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
  • Memory: 2.31 GB / 15.75 GB

Browsers:

  • Google Chrome (134.0.6998.177)
  • Firefox (136.0.3)
  • Edge (134.0.3124.93)

Where did you encounter the bug?

Public app (it-tools.tech)

@artyPD artyPD added bug Something isn't working triage labels Mar 31, 2025
@sharevb
Copy link
Contributor

sharevb commented Apr 1, 2025

Hi @artyPD, sounds like unpkg.com has a problem

@Gormandy
Copy link

Gormandy commented Apr 2, 2025

Simple solution, as in it seems easy, but I'm not this competent YET... One day...

Host the font files locally.

Instead of loading fonts from unpkg.com, download them and serve them from the same domain (it-tools.tech). That way, there's no cross-origin request to be blocked.

@artyPD
Copy link
Author

artyPD commented Apr 2, 2025

Hi @artyPD, sounds like unpkg.com has a problem

It seems so simple now. Thanks.

@bfqrst
Copy link

bfqrst commented Apr 2, 2025

I can do you one better (I think)... There are two slashes right before Standard. If you remove one, the font is actually loadable from unpkg. https://unpkg.com/[email protected]/fonts/Standard.flf. It might be a mere concatenation issue!

Cheers

@sharevb
Copy link
Contributor

sharevb commented Apr 2, 2025

Hi @artyPD and @Gormandy and @bfqrst , I will serve fonts locally in my fork soon (for "safety reasons"). But as of now, this works again in my fork (ctrl+f5 may be needed): https://sharevb-it-tools.vercel.app/ascii-text-drawer

@artyPD
Copy link
Author

artyPD commented Apr 3, 2025

Hi @sharevb, looks good!

It seems that Ctrl+F5 is needed to switch fonts. Swiching between the different fonts with reloading shows the same error. However, Ctrl+F5 then loads the font I selected because it was the last selected font. Is this what you meant with the Ctrl+F5?

@sharevb
Copy link
Contributor

sharevb commented Apr 6, 2025

Hi @artyPD and @Gormandy and @bfqrst , I now serve fonts locally in my fork. May need one time "ctrl+f5" since it-tools is a PWA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

5 participants