-
Notifications
You must be signed in to change notification settings - Fork 17
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
Font issue: preview renders as hand-drawn, export renders as simple #14
Comments
Any ideas on this? |
@mhite I can't reproduce this locally. If you want, you can test this with new version |
Version information:
Example .seqdiag file:
Example screenshot of how this is rendered in the editor: Exported version. Note that only .svg works for me currently. Exporting to .png does not work, although when I originally opened this issue it did work. You can see the error about png exporting not working in the following screen shot. Since I can't attach an .svg file to a github issue, here is a screenshot I've taken from a Chrome browser of the rendered .svg. I've also opened it in Firefox and Brave -- same incorrect font. Finally, here is a screenshot of my SequenceDiagram settings. I am running 0.4.0 of the extension. Directory dump follows:
What further steps can I take to collect diagnostic information? Thank you. |
I believe the root issue for me at this point is when the SVG file is exported, it is referencing a font that is not installed on the system. For example:
I see a lot of references of |
Maybe you can embed the font in the SVG? https://github.com/BTBurke/svg-embed-font Not that I know much about this, but it looks like you could base64 encode the font and put it in the svg.
|
FWIW, all the versions of Daniel fonts I've found online don't show up as "danielbd" font-family when I load them into the OS X font manager. Instead, they just show up as "Daniel" font-family so I can't get the SVG to render properly even if I load the font into Mac OS X. If I go into the SVG and just change the font-family name in the XML to match the Daniel I have loaded into OS X Font Manager, I can get it to render correctly. |
Despite the Sequence Diagram configuration being set to "hand," the exported PNG versions are not using this font -- they render as simple. The in-editor preview DOES render as hand drawn, however.
Any ideas of what might be going on?
The text was updated successfully, but these errors were encountered: