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

Font file is accepted only when its not uploaded via input file #462

Closed
simonjanousekk opened this issue Dec 29, 2020 · 2 comments
Closed

Comments

@simonjanousekk
Copy link

Intro

Sorry for my english, it is not my native language.
Also sorry if am missing something easy, im a learning noobie, go easy on me.

The Issue

I basically tried to do exactly what is on this site: https://opentype.js.org/font-inspector.html .
Here is my code yet:
Screenshot 2020-12-29 at 18 29 49
The "local font" that I'm reading from my local server, works fine, I get response like this: (just an object with the info I need)
Screenshot 2020-12-29 at 18 32 51
However, when I try to load the copy of the same file as the user in the browser, I get an error:
Screenshot 2020-12-29 at 18 35 10
I also tried logging the file if it's broken or anything, I get this the console:
Screenshot 2020-12-29 at 18 35 49

Context

Im trying to build website for checking mistakes for typographs.

Your Environment

  • Version used: downloaded 2 days ago
  • Font used: Space Grotesk ect. (tried few of them)
  • Browser Name and version: Safari, latest one
  • Operating System and version (desktop or mobile): Macos Big Sur
  • Link to your project: https://we.tl/t-o4NAaTr5Ud

Summ

I don't really know what I'm doing, I would love any response with any ideas how to make it work.
THANKS!!!

@mollthecoder
Copy link

It seems to be sending a 404 error page when p5 loads it. Maybe check to see if the hosting server is working properly.

@yne
Copy link
Contributor

yne commented Apr 21, 2022

The URL you are fecthing is incorrect .../[object%20File]
This is why you get a 404 HTML page which is not parsable by Opentype

@yne yne closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants