How to change the default font on Android

In that other post, we already introduced “How to change the default font on iOS with Objective-C.“,

we will see a simple way how to change the default font on PlugPDF SDK for Android.

1.Adding your font

First of all, you need to prepare a font file you want to use.

1. make Fonts folder in sample/src/main/assets

2. insert  font file into sample/src/main/assets/Fonts

Pasted Graphic.tiff

3. add the below code in your source code.


2.Set the font

Now,we are ready to change the default font.

This code snippet enables you can set the font.


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *