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

Cursive font glyphs are split in multiple strokes #669

Open
pepijndevos opened this issue Oct 8, 2023 · 2 comments
Open

Cursive font glyphs are split in multiple strokes #669

pepijndevos opened this issue Oct 8, 2023 · 2 comments

Comments

@pepijndevos
Copy link
Contributor

I want to draw words in a single stroke with a pen plotter using mergelines and the cursive font. However, glyphs like d don't connect because the incoming stroke is not present and the downstroke is seperated.

vpype text --font cursive "bird" linemerge show

image

It's unclear to me how the pickled fonts were generated, and what the process for updating them looks like.
It looks like it'd be a matter of adding a few segments that trace back on themselves, as does happen in some sans-serif fonts.

@abey79
Copy link
Owner

abey79 commented Oct 8, 2023

Well, for font support I took all the available shortcuts. The fonts are basically pickled version of these: https://github.com/fogleman/axi/blob/master/axi/hershey_fonts.py

I long wanted to build proper font support, but the stroke font situation is a mess and I've never had the time to go down that rabbit hole.

@tatarize
Copy link
Sponsor Contributor

There is a plugin for TTF support. And another could be quickly written for SHX support but you'd then be left to shift through various old Adobe fonts from the 90s or whatever which was basically all the single line vector fonts that were used. Though I don't recall if they had better support for these sorts of things. It's a pretty tricky subject how to connect the letters in a font like that. But give that the D has a top and outward part it's going to need an extra pick up of the pen (unless you keep create an up and down slope for the 'd' there.

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

3 participants