gdtools (version 0.1.7)

glyphs_match: Validate glyph entries

Description

Determines if strings contain glyphs not part of a font.

Usage

glyphs_match(x, fontname = "sans", bold = FALSE, italic = FALSE,
  fontfile = "")

Arguments

x

Character vector of strings

fontname

Font name

bold, italic

Is text bold/italic?

fontfile

Font file

Value

a logical vector, if a character element is containing at least a glyph that can not be matched in the font table, FALSE is returned.

Examples

Run this code
# NOT RUN {
glyphs_match(letters)
glyphs_match("\u265E", bold = TRUE)
# }

Run the code above in your browser using DataCamp Workspace