Creating and Using Custom Fonts in Android Studio with only Java -


i trying use custom font in android project. want using java. many tutorials have found use lot of xml, avoid.

my project uses single activity spans across several screens. understand, placing text in xml span text across of screens. not want this. , appreciated.

in android, can define own custom fonts strings in application. need download required font internet, , place in assets/fonts folder.

after putting fonts in assets folder under fonts folder, can access in java code through typeface class.

typeface custom_font = typeface.createfromasset(getassets(), "fonts/font name.ttf"); more http://www.tutorialspoint.com/android/android_custom_fonts.htm


Comments