Browse files

img raw links

Signed-off-by: Joerg Haubrichs <>
  • Loading branch information...
1 parent 5b88f8e commit eb8117210e3bade643157388774d7c8e4fafe8ba @ungroovy ungroovy committed Feb 21, 2012
Showing with 6 additions and 6 deletions.
  1. BIN
  2. +6 −6
Binary file not shown.
@@ -10,7 +10,7 @@ Basics
Create a 'fonts' folder in your *assets* folder. Copy the font files into that folder:
-![Fonts in Assets folder](
+![Fonts in Assets folder](
The font format can be either Truetype (\*.ttf) or OpenType (\*.otf).
@@ -32,7 +32,7 @@ See [Android Typeface API](
Text based controls (TextViews, EditTexts, Buttons etc.)
Given the font reference, you can set the typeface property of all controls that are subclasses of [TextView]( (basically all controls that have some kind of text in them).
@@ -55,7 +55,7 @@ We can even implement a dedicated 'Font Setter' that encapsulates those ideas an
Title bars
-![Individualized title bar](
+![Individualized title bar](
We need to check if title bar customization is available (specifically, in the activity's [onCreate](\))) method, **before** interfering with the Layout):
@@ -79,7 +79,7 @@ Then we can go ahead and customize the titlebar with a custom layout and set a t
List views
We need to implement a custom [Adapter]( to assign the Typeface to list items when they are generated. Look into the sample implementation *CustomFontArrayAdapter*.
@@ -95,12 +95,12 @@ Then we use it like this:
Web Views
You can use your mobile fonts for local [WebView]( based views as well. Let's say you put test.html in your *assets* folder like this:
-![Assets for Webview](
+![Assets for Webview](
The html file (or its CSS file) should declare the @font-face style property as follows:

0 comments on commit eb81172

Please sign in to comment.