3

I'am doing like this

domtoImage.toPng(node)
.then(function(basicStr)
{
   console.log(basicStr);
})

In my HTML some of the font icons are there but dom-to-image.js(library) not capturing those font icons.

how to solve this problem?

please help me

thanks

jeeva jeeva
  • 51
  • 1
  • 4
  • you have an example ? https://stackblitz.com/edit/angular-dom2image recommend to add catch and see whats wrong .catch(function (error) { console.error('oops, something went wrong!', error); } – e.z.a Feb 27 '19 at 13:33
  • Thanks for your reply. yes I am having .catch(function(error) { console.error('oops, something went wrong!', error); }); no error – jeeva jeeva Feb 27 '19 at 13:39
  • Error while reading CSS rules from https//:....../css/ui_min.a196f4c9a766f5f62e477b024584cba9.css SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules this error is coming – jeeva jeeva Feb 27 '19 at 13:59
  • great! this can lead you closer to the solution. apparently Security Error or missing property. redirect you to: [https://stackoverflow.com/questions/48753691/cannot-access-cssrules-from-local-css-file-in-chrome-64/49160760#49160760] maybe that can fit. best of luck. – e.z.a Feb 27 '19 at 14:16

0 Answers0