Page 1 of 1

addOpentypeFontFile method issue on simulsoft report on Ios

Posted: Mon May 29, 2017 6:32 am
by Ehsan
Hello

when I add a font to stimulsoft js report by below code

Code: Select all

Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("ModifiedDroidNaskh.ttf");
and when i open report in safari,
safari generate below error:
xmlhttprequest response type cannot be changed for synchronous http(s) requests made from the window context

you can see sample project in attached file,
thank you

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Mon May 29, 2017 10:35 am
by Alex K.
Hello,

Could you explain your issue in more details? Which MacOS version are you use?

Thank you.

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Wed Jun 14, 2017 11:20 am
by Ehsan
Hello,

Please lunch attached stimulsoft report project in iphone or mac book
in every apple device ,
xmlhttprequest response type cannot be changed for synchronous http(s) requests made from the window context
this error will be log in console.
thank you

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Mon Jun 19, 2017 6:40 am
by Ehsan
Hello,

I use a mac book with below details:
  • macOs Sierra
    Version 10.12.4
    MacBook Pro (13-inch, Mid 2012)
    Processor 2.5 GHz Intel Core i5
    Memory 8 GB 1600 MHz DDR3
    Graphics Inttel HD Graphics 4000 153 MB
Please Help me to solve this issue
Thanks

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Thu Jun 22, 2017 6:49 pm
by HighAley
Hello.

We are still working on your issue.
We will keep in touch with any news.

Thank you.

Ticket number: #4459

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Tue Jun 27, 2017 1:24 pm
by HighAley
Hello.

We have added a special method to add Font files in MacOS.
Please, try to use it. It will be available in our next build.

Code: Select all

static addOpentypeFontFileAsync(callback: Function, filePath: string, fontName: string = null)
Thank you.

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Sun Jul 09, 2017 5:20 am
by Ehsan
Hello,

There is a javascript error when use this:

code:

Code: Select all

static addOpentypeFontFileAsync(callback: Function, filePath: string, fontName: string = null)
as below:

Code: Select all

Stimulsoft.Base.StiFontCollection.addOpentypeFontFileAsync(function () { }, "glyphicons-halflings-regular.ttf");
Javascript error :
stimulsoft.reports.js:38 Uncaught RangeError: Offset is outside the bounds of the DataView
at DataView.getInt8 (<anonymous>)
at Object.exports.getTag (stimulsoft.reports.js:38)
at Object.parseBuffer [as parse] (stimulsoft.reports.js:36)
at stimulsoft.reports.js:134
at XMLHttpRequest.a.onreadystatechange (stimulsoft.reports.js:131)


Thank you

Re: addOpentypeFontFile method issue on simulsoft report on

Posted: Mon Jul 10, 2017 8:15 am
by Alex K.
Hello,

Please send us a request on support@stimulsoft.com with detail description.

Thank you.