Skip to contents

bm_lapply() applies a function over a bitmap glyph list and returns a modified bitmap glyph list.

Usage

bm_lapply(X, FUN, ...)

Arguments

X

A bitmap glyph list object such as bm_list() or bm_font().

FUN

A function that takes a bitmap object supported by is_supported_bitmap() as its first argument and returns a bitmap object supported by is_supported_bitmap().

...

Additional arguments to pass to FUN.

Value

A modified bitmap glyph list.

Details

bm_lapply() is a wrapper around base::lapply() that preserves the classes and metadata of the original bitmap glyph list.