font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
font <- read_hex(font_file)
capital_r <- font[[str2ucp("R")]]
dim(capital_r) # 8 x 16
if (requireNamespace("magick", quietly = TRUE)) {
capital_r_9x21 <- bm_distort(capital_r, width = 9L, height = 21L)
print(capital_r_9x21)
}
crops <- farming_crops_16x16()
corn <- crops$corn$portrait
dim(corn) # 16 x 16
if (cli::is_utf8_output() &&
cli::num_ansi_colors() >= 256L &&
requireNamespace("magick", quietly = TRUE)) {
corn_24x24 <- bm_distort(corn, width = 24L)
print(corn_24x24, compress = "v")
}
Run the code above in your browser using DataLab