diff --git a/_includes/fonts.html b/_includes/fonts.html new file mode 100644 index 0000000..55ca7ef --- /dev/null +++ b/_includes/fonts.html @@ -0,0 +1,17 @@ +
+

+		public class MyApplication extends Application {
+			@Override
+			public void onCreate() {
+   				super.onCreate();
+				Replacer replacer = HoverFontReplacer.Build(getApplicationContext());   
+   				replacer.setDefaultFont("Gibson-Regular.otf");
+				replacer.setBoldFont("Gibson-Bold.otf");
+				replacer.setItalicFont("Gibson-SemiBoldItalic.otf");
+   				...
+   				replacer.applyFont();
+			}
+		}
+
+
+ diff --git a/assets/images/font_screenshot.png b/assets/images/font_screenshot.png new file mode 100644 index 0000000..e1e420e Binary files /dev/null and b/assets/images/font_screenshot.png differ diff --git a/customization.md b/customization.md index f63b8e8..96f4782 100644 --- a/customization.md +++ b/customization.md @@ -45,4 +45,13 @@ If you wish to change the text that appears when a user goes to the Accessibilit You can translate the strings that are part of Hover's UI components. The list of string resources to translate are in the root folder of the Hover SDK's aar packaging called `public.txt` you can find the current english value of those strings in `/res/values/values.xml` +#### Font customisation +Font customization allows you to have a uniform font look through your app including when calling the Hover SDK. + +To achieve this, you’d need to use the inbuilt Hovers Font method. First, you need to put your fonts in the assets folder. Then add it to your ApplicationInstance.java or singleton class.java + +
+ +{% include fonts.html %} + [Next: Hover Tester](/hover-tester)