Learn R Programming

gdtools (version 0.4.0)

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 = "")

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.

Arguments

x

Character vector of strings

fontname

Font name

bold, italic

Is text bold/italic?

fontfile

Font file

Examples

Run this code
glyphs_match(letters)
glyphs_match("\u265E", bold = TRUE)

Run the code above in your browser using DataLab