1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.22k stars 562 forks source link

Add Custom Font Support #153

Closed hancanban closed 7 months ago

hancanban commented 4 years ago

Add Custom Fonts To jspaint.app

1j01 commented 4 years ago

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?

hancanban commented 4 years ago

That's What I Mean

1j01 commented 4 years ago

Which one? (or both / either?)

oguzyildizz commented 3 years ago

hi @1j01 , any plans for this? would be nice to be able to upload a ttf and use that :)

1j01 commented 3 years ago

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.

oguzyildizz commented 3 years ago

thanks!

1j01 commented 2 years ago

There is an upcoming API for listing local fonts: https://wicg.github.io/local-font-access/

1j01 commented 7 months ago

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.

screenshot of font access permissions popup

hancanban commented 7 months ago

Great! I’m happy to see this implemented.

ps.. JsPaint is really cool, thanks for making this software!