Articles in this section
Category / Section

How to check if fonts are available in an ASP .NET Core Word document.

3 mins read

If the necessary fonts used in an ASP.NET Core Word document are not installed on the production machine, the DocIO library will use an alternate font for rendering the text. As a result, you may notice differences in the rendered text in the generated PDF or image files during the Word to PDF/image conversion process.

We strongly recommend installing all the fonts used in the Word document on the production machine to ensure proper preservation in the generated PDF/image files.

 You can check whether the necessary fonts are available on the machine in two ways:

 1. Using the DocIO font substitution utility (recommended approach)

 2. Using the Microsoft Word application

1. Using the DocIO font substitution utility

DocIO has a font substitution event handler to set alternate fonts for missing fonts in the Word document during Word to PDF/image conversion. Using this event handler, you can print the fonts used in your input document that are not available on the production machine. You can browse any Word document and print whether the necessary fonts are available on the machine. Then, you can install the necessary missing fonts.

You can find the utility on GitHub and run it.

 2. Using the Microsoft Word application

You can see the missing fonts by opening the input Word document using the Microsoft Word application and clicking File → Options → Advanced → Font substitution button. It shows the missing font list. If your machine has all necessary fonts, it will show the below window:

Using Microsoft word application

See also

How to perform font substitution in Word to PDF conversion

Conclusion

I hope you enjoyed learning how to check if fonts are available in an ASP .NET Core Word document.

You can refer to our ASP.NET Core DocIO feature tour page to learn about its other groundbreaking feature representations. You can also explore our documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied