HTEXTBITMAP Get Text Rendered as a Bitmap

Section: Handle-Based Graphics

Usage

This function takes a fontname, a size, and a text string and returns a bitmap containing the text. The generic syntax for its use is
  bitmap = htextbitmap(fontname,size,text)

where the output bitmap contains the text rendered into a matrix.