memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.15k stars 771 forks source link

Text inset blur #556

Open orange451 opened 4 years ago

orange451 commented 4 years ago

Hiah, I was wondering if it was possible to do text blurs that are inset with NanoVG font drawing. Non inset is easy, just nvgFontBlur().

orange451 commented 4 years ago

I recon this should be simple, i.e. draw a blurred font but clip it with the regular (non blurred) font drawing. Just not sure how to do this within NanoVG. Any help would be appreciated!