Created
November 6, 2012 10:56
-
-
Save atermenji/4024022 to your computer and use it in GitHub Desktop.
Load Entypo font (http://www.entypo.com/) to a TextView
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
private void loadEntypoFont() { | |
Typeface entypo = Typeface.createFromAsset(getAssets(), "fonts/Entypo.otf"); | |
mTvEntypo.setTypeface(entypo); | |
int codePoint = 0x1F4F1; | |
char[] text = Character.toChars(codePoint); | |
mTvEntypo.setText(text, 0, text.length); | |
mTvEntypo.setTextColor(Color.RED); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment