How to change the default font on iOS with Objective-C.

Sometimes your application with PlugPDF SDK  does not display your native language or some special characters because our default font may not support some languages and special characters. Also, you may do not like our default font style.

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


Adding your font

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

Choose the Build phase > Copy Bundle Resources and then press on the + button as shown in the figure below.  


Select your font file.


The below is shown the font file is added.



Set the font

Now,we are ready to change the default font.

This code snippet enables you can set the font.

The default font can be set within the AppDelegate.m file by calling the PlugPDFInit function from the didFinishLaunchingWithOptions method.


2 replies
  1. Saran
    Saran says:

    Hi Plug PDF really works well. I want to add a pop up view in the PDF view screen. How can i add it ? Please help me for this.


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 *