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

Font Dilation (font outline) #640

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update src/fontstash.h
Co-authored-by: Dominus Iniquitatis <Iniquitatis@users.noreply.github.com>
rgb2hsv and Iniquitatis authored Jul 25, 2022
commit ee4612dc489b3ca104a4d44d237719e8e93df18a
2 changes: 1 addition & 1 deletion src/fontstash.h
Original file line number Diff line number Diff line change
@@ -1193,7 +1193,7 @@ static void fons__maxDiagDown(unsigned char* dst, int w, int h, int dstStride)
}
}

// Gray level morphological dilation approximated by convoling with a max stencil along
// Gray level morphological dilation approximated by convolving with a max stencil along
// Diagonal convolution overlaps with horizontal & vertical, so we alternate between vertical & horizontal
// and diagonal directions to prevent the dilation from being too large.
static void fons__dilate(FONScontext* stash, unsigned char* dst, int w, int h, int dstStride, int dilate)