image thumbnail

font_mask(str, font)

version 1.0.0.0 (222 KB) by Jaroslaw Tuszynski
Create a boolean pixel mask based on string

29 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 (2021). 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!