Chooses a font family that is actually installed on the system, so that output renders (and embeds into PDF) without falling back to a substitute. Latin text prefers clean sans-serif faces; CJK text prefers a Japanese capable family.
Arguments
- cjk
If
TRUE, look for a CJK (Japanese) capable family.- preferred
Character vector of family names to try, in order. If
NULL, a built-in list of common families is used.- fallback
Family name to return when none of
preferredis installed. Defaults to the empty string, which lets the graphics device pick.