Page 1 of 2

Font issue

Posted: Fri Apr 20, 2018 5:30 am
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

Re: Font issue

Posted: Fri Apr 20, 2018 7:34 am
by Ehsan
I think its for opentype js , which version of opentype js you use in your latest library?

Re: Font issue

Posted: Mon Apr 23, 2018 1:19 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: Font issue

Posted: Tue Apr 24, 2018 5:04 am
by Ehsan
Hello,
Anyway, I have above issue. Can you please check it and fix it?

Thanks

Re: Font issue

Posted: Tue Apr 24, 2018 10:38 pm
by HighAley
Hello, Ehsan.

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

Thank you.

Re: Font issue

Posted: Tue May 01, 2018 6:50 am
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

Re: Font issue

Posted: Mon May 07, 2018 10:24 am
by Lech Kulikowski
Hello,

We need some additional time to check the issue.

Thank you.

Re: Font issue

Posted: Tue May 08, 2018 5:39 am
by Ehsan
Hello,

Ok

Thanks

Re: Font issue

Posted: Thu May 10, 2018 8:39 pm
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

Re: Font issue

Posted: Sat May 26, 2018 5:19 am
by Ehsan
Hi dear HighAley,

Did you get any result on this issue?

Thank you