Skip to main content

font_to_mathvariant

Function font_to_mathvariant 

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

Map a LaTeXML font name to a MathML mathvariant value.

Wrapper around unicode::unicode_mathvariant (full Perl parity). Returns Some(variant) for recognized fonts, None only for empty input.