dom-to-image
dom-to-image copied to clipboard
Doesn't handle @font-face
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+
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