OCR A Extended font not working on Azure App Service

Chris Sturm 1 Reputation point
2022-12-28T19:01:54.743+00:00

I have been using the DevExpress library and have also used IronPDF in the past and had the same issue. When I am running my project locally, the OCR A Extended font shows up no problem, but when I am publishing to my Azure App Service, it no longer works. It just shows some generic text instead of the OCR A font. I have submitted a request to DevExpress support about this issue and they mentioned that Azure App Services don't support certain fonts and that I would have to use a Virtual Machine or a Docker Linux Container to fix this. To me, it seems that a font such as this would be commonly used among other apps. I wanted to put the question here as well... Is there any way to get this font to work without completely changing how my app is hosted?

Any help is greatly appreciated. Thanks.

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,998 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
609 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. VenkateshDodda-MSFT 6,336 Reputation points Microsoft Employee
    2022-12-30T08:52:15.67+00:00

    Sharing the below for the benefit of other community members, If any one is facing the same issue I would suggest you take a look into the below checks

    • Could you please check whether all the packages/libraries that were running in local are deployed to azure or not.
    • while the application is running are observing any high CPU or memory usage issues?
    • On which app service plan you are application is running (like free or shared etc.,)
    • Since each and every webapp runs on a sandbox environment we have couple of restrictions and pdf generators which were developed on these frameworks (Syncfusion,Siberix,Spire.PDF).

    I have found these documentations from Iron Pdf and also this SO thread you can take a look which might be helpful

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    No comments

  2. Bruce (SqlWork.com) 28,276 Reputation points
    2023-01-02T17:49:49.187+00:00

    This is due to gdi restrictions of the azure sandbox

    https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#win32ksys-user32gdi32-restrictions

    The work around is to use a vm hosting, Linux docker or Linux rather than windows web app hosting.

    If you have a 4.8 framework, then vm hosting is your only option. If .net core, then pick linux (it’s cheaper anyway) when you create the web app resource.

    No comments