summary.bm_font() summarizes a bm_font() object, showing
the font name (if available), the number of characters,
and coverage of Unicode blocks.
Arguments
- object
A
bm_font()object.- ...
Currently ignored.
- x
A
summary_bm_fontobject.
Value
A summary_bm_font object (a list) with the following components:
- name
Font name string, or
NULLif not available.- bitmap_class
The bitmap class of the glyphs (e.g.
"bm_bitmap"or"bm_pixmap"), orNULLif the font is empty.- n_chars
Number of characters in the font.
- coverage
A data frame with columns
block(Unicode block name),n(number of font characters in that block), andtotal(total number of named code points in that block). Rows are sorted in Unicode code point order and include only blocks with at least one character in the font.
Examples
font <- read_yaff(system.file("fonts/fixed/4x6.yaff.gz", package = "bittermelon"))
summary(font)
#> Bitmap font: Fixed Medium 6
#> Bitmap class: bm_bitmap
#> Total characters: 919
#> Unicode block coverage (n / named chars in block):
#> Basic Latin 95/ 95
#> Latin-1 Supplement 96/ 96
#> Latin Extended-A 128/128
#> Latin Extended-B 6/208
#> IPA Extensions 1/ 96
#> Spacing Modifier Letters 9/ 80
#> Greek and Coptic 76/135
#> Cyrillic 96/256
#> Hebrew 27/ 88
#> Latin Extended Additional 22/256
#> General Punctuation 28/111
#> Superscripts and Subscripts 1/ 42
#> Currency Symbols 2/ 33
#> Letterlike Symbols 4/ 80
#> Number Forms 4/ 60
#> Arrows 6/112
#> Mathematical Operators 138/256
#> Miscellaneous Technical 7/256
#> Control Pictures 7/ 42
#> Box Drawing 128/128
#> Block Elements 22/ 32
#> Geometric Shapes 3/ 96
#> Miscellaneous Symbols 11/256
#> Specials 1/ 5