jspaint
jspaint copied to clipboard
Add Custom Font Support
Add Custom Fonts To jspaint.app
Previously jspaint had support for detecting all system fonts, but this worked via the Flash plugin, and that's being phased out of browsers.
Would you be happy with a generally increased selection of fonts, such as from Google Fonts? Or do you want to load specific individual fonts that aren't necessarily on there? Like, would you be more interested in the ability to drag and drop a font file into the app to use?
That's What I Mean
Which one? (or both / either?)
- More variety in font selector by default
- Loading specific font files from your computer
hi @1j01 , any plans for this? would be nice to be able to upload a ttf and use that :)
It shouldn't be too hard, but I have lots of other things to work on, so I don't know when I might get around to it. In the meantime, if you want to use custom fonts, you can use Photopea, an advanced free online image editor.
thanks!
There is an upcoming API for listing local fonts: https://wicg.github.io/local-font-access/
I've added Local Font Access API support in https://github.com/1j01/jspaint/commit/8d3543946b8cabde3c16b02f76b6a8d4ad895678. You can now use any installed fonts in JS Paint! You just have to click Allow when switching to the Text tool. This is supported in Chrome and Edge currently.
Great! I’m happy to see this implemented.
ps.. JsPaint is really cool, thanks for making this software!