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

Quality of output SVG file #80

Open
TheRealFanjin opened this issue Nov 21, 2023 · 5 comments
Open

Quality of output SVG file #80

TheRealFanjin opened this issue Nov 21, 2023 · 5 comments

Comments

@TheRealFanjin
Copy link

When running this program on my local machine, the letters in the output SVG is very jagged and looks low quality. However, when I generate the same thing on the demo website, it is very smooth and has very little jagged edges. See the following images, the first one generated on my machine and the second one generated on the web demo:

image

image

As you can see, the second image has noticeably better quality than the first image. Does anyone know how to make the SVG generated on my machine the same quality as the second image? Thanks

@Fardenco
Copy link

Could you please send me the SVG file generated on your computer ?

@TheRealFanjin
Copy link
Author

Could you please send me the SVG file generated on your computer ?

agreement

@Fardenco
Copy link

As you might have already have guessed, the code behind the web demo is not exactly the same. Not only are the lines smoother, they also are not a single stroke anymore. You can see that on the SVG you sent as well as on all the screenshots on the readme of this repo, the lines always have the same width all along. But on the text generated by the web demo, the width of the line changes to replicate the effect of the varying pressure we apply on the pen when writing.
Maybe you'll find what you're looking for here : https://github.com/GirkovArpa/calligrapher-ai

@TheRealFanjin
Copy link
Author

Thanks, but is there no way to change the font stroke type in this repo?

@Fardenco
Copy link

I don't think so but I'll let someone who knows better than me confirm that

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