This article shows how easy it is to change Android TextView and EditText fonts using properties. ↓markdown↓ CMS is fast and simple. Then you only need to edit style properties in a single location, similar to the way HTML web pages are styled with cascading style sheets (CSS). The Strato-linked.ttf file is copied to the src/main/assets folder. Styles that only modify a View's text properties is applied with the textAppearance property (XML attribute android:textAppearance). However, dp does not cater for a user’s font size setting. As for CSS styles can themselves use other defined styles. For the TextView find the typeface property and try the various settings of normal, sans, serif, and monospace. In the new opened XML file define a new style for bold and serif, the textSize is set to 18sp to override the small default font size. First, define everything about the font that you want to use in a resources file. Nitin on January 7, 2013 at 10:09 am said: I want to apply Comic-sans to my whole android application but not got it can you please help me? Once I enter the code on the XML layout file, then it lets them modify that setting on the properties dialog box. Specifies how to align the text by the view's x- and/or y-axis when the text is smaller than the view. android:ems or setEms(n) sets the width of a TextView to fit a text of n 'M' letters regardless of the actual text extension and text size. 5: android:fontFamily. A fontFamily not present on the system, i.e. Try the various fontFamily settings of sans-serif, sans-serif-condensed, serif, monospace, serif-monospace, casual, cursive and sans-serif-small-caps. The fonts shipped with Android are placed onto you PC when the SDK is installed. 8: android:inputType TextView textSize in XML Layout