my font haven't be shown in print preview stimulsoft

Viewed 3747

I am using StimulSoft software for showing reports in my asp.net mvc project.
In my report all of things is OK, but In print preview my font haven't be applied.
I attached my font in report.cshtml file by using font-face.
How can I solve this problem?

4 Answers

Add font in project for example(fonts folder) then add this code into your service

Stimulsoft.Base.StiFontCollection.AddFontFile(Server.MapPath("~/fonts/my-font/font-name.ttf"));

Then add your fonts to server font folder too!

Add font in Controller for load in Razor pages:

Stimulsoft.Base.StiFontCollection.AddFontFile(@"d:\Work\Resources\glyphicons-halflings- 
regular.ttf");
Related