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

See if there's a way to detect if fonts are done loading and have loaded successfully #88

Open
g-a-v-i-n opened this issue Aug 16, 2019 · 7 comments
Assignees

Comments

@g-a-v-i-n
Copy link
Contributor

Not sure if this is possible, but would be really nice for better debugging and confidence in reliability.

@francescanarea
Copy link
Contributor

@g-a-v-i-n This lib + blog post about it

@francescanarea
Copy link
Contributor

francescanarea commented Aug 20, 2019

pursuing this because it explicitly says that it supports canvas whereas the other one didn't

@francescanarea
Copy link
Contributor

francescanarea commented Aug 20, 2019

@g-a-v-i-n getting this error while trying to test my code on branch feat/88

Screen Shot 2019-08-20 at 3 29 54 PM

it looks like you were messing around with the sigil stuff but unsure if this is a me problem (is there no require necessary for the sigil lib?)

code referenced in error:

Screen Shot 2019-08-20 at 3 35 31 PM

@g-a-v-i-n
Copy link
Contributor Author

what is git .sigil?

@g-a-v-i-n
Copy link
Contributor Author

ugh i know what this is. we can fix it tmr.

@francescanarea
Copy link
Contributor

francescanarea commented Aug 21, 2019

@g-a-v-i-n

other options:

  • fontfaceset
    --> looks super close to what we want?
    document.fonts.check("12px courier"); // returns true if the font courier is available at 12px
  • fontfaceobserver

@francescanarea
Copy link
Contributor

francescanarea commented Aug 22, 2019

going to implement fontfaceset because it seems like it can wrap around the current structure without making changes to drawing syntax like with opentype.js

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

2 participants