Skip to content

Instantly share code, notes, and snippets.

@atermenji
Created November 6, 2012 10:56
Show Gist options
  • Save atermenji/4024022 to your computer and use it in GitHub Desktop.
Save atermenji/4024022 to your computer and use it in GitHub Desktop.
Load Entypo font (http://www.entypo.com/) to a TextView
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