| read_hex | R Documentation | 
read_hex() reads in hex format bitmap font files
as a bm_font() object while write_hex() writes a bm_font() object
as a hex format bitmap font file.
read_hex(con, ucp = NULL)
write_hex(font, con = stdout())
| con | A connection object or a character string of a filename.
See  | 
| ucp | Character vector of Unicode Code Points: glyphs not in this vector won't be read in.
If  | 
| font | A  | 
read_hex() returns a bm_font() object.
write_hex() returns invisibly a character vector of the contents
of the hex font file it wrote to con as a side effect.
bm_font()
 font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
 font <- read_hex(font_file)
 capital_r <- font[[str2ucp("R")]]
 print(capital_r)
 filename <- tempfile(fileext = ".hex.gz")
 write_hex(font, gzfile(filename))
 font <- read_hex(font_file, ucp = block2ucp("Basic Latin"))
 capital_r <- font[[str2ucp("R")]]
 print(capital_r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.