New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use custom fonts in <defs> #39
Comments
Yeah, same issue as #18. |
@domenic Here's a crazy workaround -- I installed the font I needed in the Mac OS X Font Book, and then PhantomJS was able to render my text with it just fine! 👍 I did notice that indeed the Here's the package I created using svg2png with this workaround: |
I'm having this problem too. Is there anyway to resolve this as installing the font's isn't an option as the conversion is happening on the server. |
I found that updating to the latest version of phantomjs and installing the fonts on the server resolved this. |
Can you provide a complete SVG test file (as a gist perhaps) so I can see if this is fixed in the latest PhantomJS? |
Closing since nobody was able to provide a repro I could test and work with; happy to reopen if someone does. |
@domenic Sorry for the late reply, the full SVG test file is provided in the original issue: Would you like the full font base64 as well? |
Yes, I need something I can actually run through svg2png :) |
Here it is: Thanks! |
@domenic cool, thanks! |
Hey guys,
Loving the package, really nifty and easy to use!
Just one hiccup -- is there any chance that PhantomJS doesn't handle custom fonts declared in a
<style>
attribute within the<defs>
section of an SVG?It seems to ignore the import, although Google Chrome renders the SVG with the font just fine.
Can anyone please shed some light on this behavior?
The text was updated successfully, but these errors were encountered: