Skip to main content

nfss_family_code

Function nfss_family_code 

Source
pub fn nfss_family_code(family: &str) -> Option<&'static str>
Expand description

The NFSS family code that selects an abstract font family: the inverse of lookup_font_family, giving the code LaTeX’s own defaults would put in \f@family (\rmdefault cmr, \sfdefault cmss, \ttdefault cmtt, all locked in sect13.rs; yfonts’ \gothdefault/\swabdefault) or the one code the table maps to a symbol or display family. None for a family no NFSS code selects — nullfont, graphic, math, and the binding-only oldstyle, caligraphic, italic, smallcaps families: switching to it leaves \f@family alone, as a raw TeX font switch does.