Empty Print dialog with custom font

Stimulsoft Reports.JS discussion
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty Print dialog with custom font

Post by Max Shamanov »

Hello,

We need some time to investigate the issue.
We will let you know about the result.

Thank you.
#6218
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty Print dialog with custom font

Post by Max Shamanov »

Hello,

We offer different versions of our product for various technologies, such as .NET, WPF, JS, and Java. In our JS version of our font product, we utilize a third-party library called "fontkit" (starting from version 2023.1).
We have extensively tested it with challenging languages like Arabic, Kurdish, Thai, and Khmer, and in most cases, the text is displayed correctly.

However, there is one particular requirement for this library to function properly: it needs access to font files. In other words, all the fonts that will be used in reports must be preloaded into our StiFontCollection class using the following command:
Stimulsoft.Base.StiFontCollection.addFontFile(font_path, font_alias).

Thank you.
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Empty Print dialog with custom font

Post by noob »

Hello Max,

where to put this (Stimulsoft.Base.StiFontCollection.addFontFile(font_path, font_alias)) code ? im using Stimulsoft JS Viewer and .Net for Server side MRT Processing .

Thanks
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Empty Print dialog with custom font

Post by noob »

from dev console this command (Stimulsoft.Base.StiFontCollection.getFontFamilies()) contains the required font family ==> [.....,'Noto Naskh Arabic',.....]
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Empty Print dialog with custom font

Post by noob »

1- Print => Save As Pdf => (text is displayed correctly)
2- Save => Adobe Pdf => (text is not displayed correctly)

-Stimulsoft.Base.StiFontCollection.getFontFamilies() and Stimulsoft.Base.StiFontCollection.getBinFonts() returns the needed font (Noto Naskh Arabic), soo ..
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty Print dialog with custom font

Post by Max Shamanov »

Hello,

We need some time to investigate the issue.
We will let you know about the result.

Thank you.
#6218
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Empty Print dialog with custom font

Post by noob »

Hi Max,

any updates?
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty Print dialog with custom font

Post by Max Shamanov »

Hello.​​

We are still working on the issue.
We will let you know when we get any result.

Thank you.
User avatar
noob
Posts: 29
Joined: Sat Feb 05, 2022 9:03 am
Location: Iraq, Erbil

Re: Empty Print dialog with custom font

Post by noob »

Thanks
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Empty Print dialog with custom font

Post by Max Shamanov »

Hello.​​

We will let you know when we get any result.

Thank you.
Post Reply