This site requires JavaScript, please enable it in your browser!
Greenfoot back
DavranbekRozmetov
DavranbekRozmetov wrote ...

2018/4/12

Is it possible to use fonts as icons

DavranbekRozmetov DavranbekRozmetov

2018/4/12

#
Hello there. I am trying to make a game and being really stubborn for not including any kind of imported image in my game. So I was wondering if there is any ways of me getting icons via code, class or font; the same as Font Awesome for HTML., is there anything I can do? Thank you in advance :)
danpost danpost

2018/4/12

#
DavranbekRozmetov wrote...
I was wondering if there is any ways of me getting icons via code, class or font; the same as Font Awesome for HTML., is there anything I can do?
I do not think the java.awt package is supported in HTML5. That would mean the java.awt.GraphicsEnvironment class where you can get all system fonts from would not be accessible in HTML5. It might be possible to find something similar to what you want in the Unicode character set. I found the chess piece images for my Chess: drag-n-drop scenario there.
You need to login to post a reply.