Skip to main content

unicode_mathvariant

Function unicode_mathvariant 

Source
pub fn unicode_mathvariant(font: &str) -> &'static str
Expand description

Normalize a LaTeXML font name to a MathML mathvariant value.

Port of Perl’s unicode_mathvariant($font). Applies normalization: slanted→italic, removes redundant “serif”/“upright”/“medium”, then looks up in the canonical table. Returns “normal” as fallback.