Created
February 28, 2016 09:53
-
-
Save codenameone/9c881350e1d142081aba to your computer and use it in GitHub Desktop.
Usage of the FontImage class that allows integrating icon fonts into Codename One
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form hi = new Form("Icon Font"); | |
Font materialFont = FontImage.getMaterialDesignFont(); | |
int w = Display.getInstance().getDisplayWidth(); | |
FontImage fntImage = FontImage.createFixed("\uE161", materialFont, 0xff0000, w, w); | |
hi.add(fntImage); | |
hi.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of FontImage.
From the Codename One project