bm_list() creates a bitmap list object.

bm_list(...)

Arguments

...

bm_bitmap() objects, possibly named.

Value

A named list with a “bm_list” subclass.

Details

bm_list() is a list of bm_bitmap() objects with class “bm_list”. It is superclass of bm_font().

Supported S3 methods

  • as.list.bm_list()

  • Slicing with [] returns bm_list() objects.

  • The min(), max(), and range() functions from the “Summary” group of generic methods.

Examples

 font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
 font <- read_hex(font_file)

 gl <- font[c("U+0023", "U+0052", "U+0053", "U+0054", "U+0041", "U+0054", "U+0053")] # #RSTATS
 gl <- as_bm_list(gl)
 is_bm_list(gl)
#> [1] TRUE