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

Add stroke functionality to the glyphs #49

Closed
wants to merge 4 commits into from
Closed

Add stroke functionality to the glyphs #49

wants to merge 4 commits into from

Conversation

tdewolff
Copy link

This adds the ability to set stroke width for font drawing. Drawing a black stroked glyph and then a white normal glyph will give the font a black stroke.

The only problem is that the rasterizer doesn't allow closing paths. If the start and end point are at the same position, the strokes will overlap and appear thicker (alpha channel overlaps). An upcoming PR will solve this.

Secondly, this should be added to github.com/golang/freetype/freetype.go too?

@tdewolff tdewolff changed the title Stroke Add stroke functionality to the rasterizer May 21, 2017
@tdewolff tdewolff changed the title Add stroke functionality to the rasterizer Add stroke functionality to the glyphs May 21, 2017
@tdewolff tdewolff closed this by deleting the head repository Mar 30, 2023
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

Successfully merging this pull request may close these issues.

1 participant