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

Returning undefined #1

Open
danbulant opened this issue Jan 1, 2020 · 5 comments
Open

Returning undefined #1

danbulant opened this issue Jan 1, 2020 · 5 comments

Comments

@danbulant
Copy link

Hello.
I tried using this library, but when I did

Font.create(text, 'Doom', function (rendered) {
   console.log(rendered)
});

It just printed undefined.

The text variable is defined (as "test") and I didn't change the path (thus using the default Doom font found in Fonts)

@joneslloyd
Copy link

I have the same issue

@glud123
Copy link

glud123 commented May 14, 2020

The callback function has two parameters.

Font.create(text, 'Doom', function (err,rendered) {
   console.log(rendered)
});

@joneslloyd
Copy link

Ah I just copy/pasted from the example I believe

@danbulant
Copy link
Author

Then the examples should be updated...

@khrome
Copy link
Owner

khrome commented Sep 1, 2020

Thanks for noting this, I'll update those docs!

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

4 participants