How to upload custom fonts to Azure AppService and use them in the PDF reporting?
I need to create a pdf with the following font:
Font Architect Daughter (by Google)
When the form is submitted, a PDF is created, but the Google font would not be included in the process of creating the PDF.
Solution in the server:
- Install the form in the Application Server, the ttf file is attached to this ticket
- Go to IIS Manager
- In the server root, select the option MIME Types
- Add the following extensions:
a)
Extension: .ttf
Type: application/octet-stream
b)
Extension: .woff
Type: application/font-woff
c)
Extension: .woff2
Type: application/font-woff2
- Make sure the .ttf file is deployed with the application, in Test case it is located in the folder: C:\inetpub\wwwroot\RecoveryMemberTest\Content\Fonts