Skip to content
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

Online demo preview and SVG output don't match #106

Open
ianjevans opened this issue Oct 6, 2023 · 1 comment
Open

Online demo preview and SVG output don't match #106

ianjevans opened this issue Oct 6, 2023 · 1 comment

Comments

@ianjevans
Copy link

I was using the online demo to make some simple diagrams, and used the following text:


 Cutover phase

                    .--------------.
                    |              |
        .-------->  |  CockroachDB |
       |            | {t}          |
       |            '--------------'
       |                   !
       |                   !
       |                   V
+-------------+       .----------.
|             |      /            \
| Application |     (  replication )
|{a}          |      \            /
+-------------+       '----------' 
                           |
                           V
                    .--------------.
                    |              |
                    |  Source DB   |
                    | {s}          |
                    '--------------'

# Legend:
t = {
    stroke: #6933ff;
    fill: #b59cf9;
}
s = {
    stroke: green;
    fill: lightgreen;
}
a = {
    fill: lightblue;
}
crdb = {
    fill: #6933ff;
    color: white;
}

The preview looks good:
Screenshot 2023-10-06 at 9 38 09 AM

But the output SVG from clicking Download SVG has spacing issues:
bob

@ivanceras
Copy link
Owner

@ianjevans This seems to be a font issue, the demo is using Iosevka fonts which I found to fit well with svgbob. The downloaded svg will use your default monospace font if Iosevka is not installed in your system. You can try to install Iosevka in your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants