Print sample text to screen using compact unicode block characters

bdf_print_sample_compact(
  bdf,
  text,
  width = NULL,
  wrap = TRUE,
  trim = TRUE,
  line_height = NULL
)

Arguments

bdf

bdf font object as returned by read_bdf()

text

string

width

desired output width for output. Default: NULL means to use the current console width

wrap

wrap the text into separate lines using base::strwrap(). Default: TRUE. Note that strwrap() will only break lines at whitespace, and resulting text may still overflow terminal width. See trim argument.

trim

trim the text at the consolve width. default: TRUE

line_height

This value is used for vertical spacing between lines of text when the text is wrapped. If line_height is NULL, then use the pixel size speficied in the font. You may wish to set a value here if you to ensure ascenders/descenders do not overlap on subsequent lines, or just to space out the text a bit more.