We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Ability To add font family Arial to free text annotation

Is there a way to add new font families to the free text annotation section and to set a new default for the font family and size?



2 Replies 1 reply marked as answer

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team February 9, 2023 02:51 PM UTC

We don't have support to add the font family and font size in UI. However, you can change the font family to Arial and font size to 15 programmatically. We have shared the sample for this.


Angular sample: https://stackblitz.com/edit/angular-zvuamx-w2k37d?file=src%2Fapp.component.html,src%2Fapp.component.ts,src%2Findex.html,src%2Fmain.ts


Web service sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ArialFontFamily-479937001.zip


Steps to change the font family and the font size:


  • Run the web service sample
  • And then run the Angular sample
  • Add a free text.
  • Click the "Change Font Family and Font size" button. Now the font family is changed to Arial and the font size is set to 15.


Note : The changed font family will be visible on other PDF readers but not in the Syncfusion PDF Viewer, on reloading. We will validate and provide the details regarding the feasibility in two business days.


Marked as answer

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team February 14, 2023 02:57 PM UTC

We have analyzed the feasibility and logged this as a feature request as "Provide the support to render the free text annotation with the actual font family". We will implement this feature in any of our upcoming releases and let you know once this feature is implemented. You can track the status using the below feedback link.


Sample:  Provide the support to render the free text annotation with the actual font family | Feature Feedback


Loader.
Live Chat Icon For mobile
Up arrow icon