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
Open

Conversation

rgb2hsv
Copy link

@rgb2hsv rgb2hsv commented Jul 25, 2022

This PR adds font dilation as nvgFontDilate() to give better emphasis to text, especially when it is overlaid on an unknown background color or image. It is implemented with gray level morphology, which is approximated with directional convolutions. It can also be used in combination with nvgFontBlur() for a smoother fall-off.
dump

@rgb2hsv rgb2hsv changed the title Font Dilation (i.e. font outline) Font Dilation (font outline) Jul 25, 2022
src/fontstash.h Outdated Show resolved Hide resolved
src/fontstash.h Outdated Show resolved Hide resolved
xfangfang added a commit to xfangfang/borealis that referenced this pull request Dec 23, 2023
@fwsGonzo
Copy link

fwsGonzo commented Apr 6, 2024

Fantastic work! Thanks for doing this.

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.

3 participants