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

Improve font converter - allow font file selection #621

Merged

Conversation

dandelany
Copy link
Contributor

I wanted to use the Espruino Font Converter with a local .otf font file I had - and I realized it was possible to do it in Javascript by generating a Base64 data URL with FileReader. Hope this is useful to others too :) Feel free to make any changes.

PS: FYI I have noticed a separate bug - when using Google fonts, the font converter sometimes creates the font before the font loads, and you have to click "Go" again to regenerate it - but this only happens occasionally & I haven't tracked it down yet.

@gfwilliams
Copy link
Member

That's brilliant - thanks! Not sure if you spotted this but someone was asking just today about it! http://forum.espruino.com/conversations/370540/#comment16291655

I'll try and update the website later today with this

@gfwilliams gfwilliams merged commit b56127d into espruino:master Dec 1, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants