dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

Doesn't handle @font-face

Open Refoyl opened this issue 8 years ago • 1 comments

Use case: description, code

My HTML has the following CSS:

.symbol { font-family: 'mySymbols'; font-size: 80%; padding-top: 5px; } @font-face { font-family : 'mySymbols'; src: url('src/fonts/smallSymbol.ttf') format('truetype'); font-weight: normal; font-style: normal; }

Expected behavior

I expect dom-to-html to look for this font in src/fonts/smallSymbol.ttf'

Actual behavior (stack traces, console logs etc)

dom-to-html is looking for the font in css/src/smallSymbol.ttf.

Library version

Browsers

  • [ ] Firefox 45+

Refoyl avatar Jan 12 '17 15:01 Refoyl

when the css resource or script is located in location type file:\ it is impossible to work, the resource must be located in cloud or local server.

this works for me

areyes21 avatar Dec 29 '23 15:12 areyes21