font_mask(str, font)

Create a boolean pixel mask based on string
33 Downloads
Updated 14 Mar 2017

View License

mask = font_mask(str, font) returns boolean mask showing characters in the string "str", rendered using font "font". Meant to be used for image annotation where final image is of the same size as the original image.
Fonts based on Libgd fonts ( https://github.com/libgd/libgd) and on fonts from http://patorjk.com/software/taag/ .

Cite As

Jaroslaw Tuszynski (2024). font_mask(str, font) (https://www.mathworks.com/matlabcentral/fileexchange/62059-font_mask-str-font), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0