Font issue

Stimulsoft Reports.JS discussion
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Font issue

Post by Ehsan »

Hello
I use below codes to import font to my report and use it,

Code: Select all

Stimulsoft.Base.StiFontCollection.addOpentypeFontFileAsync(function () {
            }, "/fonts/ttf/IRANSansWeb(FaNum).ttf")
but I faced an error with below details:



i[a] is not a function

TypeError: i[a] is not a function at f.getKerningValue (http://localhost:22452/scripts/lib/stim ... js:66:2066) at Font.getKerningValue (http://localhost:22452/scripts/lib/stim ... js:24:2364) at Function.i.measureString (http://localhost:22452/scripts/lib/stim ... 152:203908) at Function.i.measureString (http://localhost:22452/scripts/lib/stim ... 152:203449) at Function.t.getWordWrapTextLines (http://localhost:22452/scripts/lib/stim ... 153:208396) at Function.m.getTextLinesAndWidths (http://localhost:22452/scripts/lib/stim ... 155:174766) at Function.Tt.writeText (http://localhost:22452/scripts/lib/stim ... 164:224126) at Function.Tt.saveComponentToString (http://localhost:22452/scripts/lib/stim ... 164:262225) at Function.Oi.getSvgContent (http://localhost:22452/scripts/lib/stim ... s:20:79296) at Function.Oi.readAllPropertiesFromString (http://localhost:22452/scripts/lib/stim ... :20:121324)



Thanks
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: Font issue

Post by Ehsan »

I think its for opentype js , which version of opentype js you use in your latest library?
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Font issue

Post by Lech Kulikowski »

Hello,

We are using "opentype.js": "0.6.1" version.

Thank you.
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: Font issue

Post by Ehsan »

Hello,
Anyway, I have above issue. Can you please check it and fix it?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Font issue

Post by HighAley »

Hello, Ehsan.

Could you send us a sample that will help us to reproduce your issue?

Thank you.
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: Font issue

Post by Ehsan »

Hello,

Please see attached sample and video,
When I want to use my font,
Stimulsoft js report generate an error with mentioned details.

Thanks
Attachments
FontIssue1.rar
(6.49 MiB) Downloaded 212 times
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Font issue

Post by Lech Kulikowski »

Hello,

We need some additional time to check the issue.

Thank you.
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: Font issue

Post by Ehsan »

Hello,

Ok

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Font issue

Post by HighAley »

Hello.

We have got the error in some browsers.
We are working on the issue and will let you know when we get any result.

Thank you.

Ticket reference: #6174
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

Re: Font issue

Post by Ehsan »

Hi dear HighAley,

Did you get any result on this issue?

Thank you
Post Reply