Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant