Page 1 of 1

Html tag font face not working Azure

Posted: Thu Apr 11, 2019 6:30 pm
by edsonmiranda
I am using Azure WebApp as DataCenter for may application.
I use Arial Narrow font and create Arial Narrow.fiz and load this font in Global.asax.cs, code follows as below:

FontsInfoStore.LoadFontInfoToStore("Arial Narrow", Server.MapPath("~/fonts/") + "Arial Narrow.fiz");
StiFontCollection.AddFontFile(Server.MapPath("~/fonts/") + "ARIALN.TTF");
StiFontCollection.AddFontFile(Server.MapPath("~/fonts/") + "ARIALNB.TTF");
StiFontCollection.AddFontFile(Server.MapPath("~/fonts/") + "ARIALNBI.TTF");
StiFontCollection.AddFontFile(Server.MapPath("~/fonts/") + "ARIALNI.TTF");

This is working fine when I set Arial Narrow font direct to the text field font property. But when I set a text field with an html tag like this: <font face="Arial Narrow">some text</font>, this text field is not showing with the Arial Narrow font, but the other text fields that are not using html tags works well and shows Arial Narrow.

Please, take a look at the images attached.
One is the html preview and the other is the exported to PDF, problem occurs when I export do PDF.

Re: Html tag font face not working Azure

Posted: Fri Apr 12, 2019 11:04 pm
by Lech Kulikowski
Hello,

We have analyzed the problem. There are some suggestions but we need report template, mdc file and PDF result for analysis.

Thank you.

Re: Html tag font face not working Azure

Posted: Wed Apr 24, 2019 4:25 pm
by edsonmiranda
Follow attached file as requested.
This problem only occurs when running on Azure.
See the first field when exported to PDF, we expect to show Arial Narrow.

Re: Html tag font face not working Azure

Posted: Fri Apr 26, 2019 1:40 pm
by edsonmiranda
Hi, do you have news about this issue?

Re: Html tag font face not working Azure

Posted: Mon Apr 29, 2019 1:35 pm
by Lech Kulikowski
Hello,

There is a problem with fonts on the Azure if it not installed in the system. With GDI+ it works correctly, but for GDI its fonts are not available and uses Arial Narrow. For rendering HTML tags is used GDI.

In your case, you need to install that font on the server or use another font which installed on the server.

Thank you.

Re: Html tag font face not working Azure

Posted: Mon Apr 29, 2019 2:25 pm
by edsonmiranda
This is a huge problem. Do you have intentions to make an upgrade to "html tags" so it can use GDI+ to render fonts and to use standard html so we can use div, span, etc?

Re: Html tag font face not working Azure

Posted: Mon Apr 29, 2019 9:11 pm
by Lech Kulikowski
Hello,

Unfortunately, at the current moment, no, we do not have plans to implement that task in the near future. Sorry.

Thank you.