FontVariations
Details
- The typical usage is FontVariations->{opt1->val1,opt2->val2,…}.
- The following options may be specified:
-
"CapsType" "Normal" whether to use a caps font variation such as all caps or small caps "Outline" False whether to draw characters as outlines "Shadow" False whether to draw a shadow around characters "StrikeThrough" False whether to draw strike-through line through characters "Underlight" None the color used for highlighting characters with a wavy line in the underline position "Underline" False whether to draw underlined characters
Examples
open all close allBasic Examples (1)
Style["abcd xyz", FontVariations -> {"Underline" -> True}]Style["abcd xyz", FontVariations -> {"StrikeThrough" -> True}]Style["abcd xyz", FontVariations -> {"Underline" -> True, "StrikeThrough" -> True}]Scope (5)
Font variations can be specified in style-related options:
Plot[Sin[x], {x, 0, 10}, PlotLabel -> Sin[x], LabelStyle -> (FontVariations -> {"Underline" -> True})]ContourPlot[Sin[x y], {x, 0, 1}, {y, 0, 1}, FrameStyle -> (FontVariations -> {"StrikeThrough" -> True})]Style["A line of text", 24, FontVariations -> {"CapsType" -> "SmallCaps"}]Style["abc 123", 24, FontVariations -> {"Outline" -> True}]Style["abc 123", 24, FontVariations -> {"Shadow" -> True}]Style["abc 123", 24, FontVariations -> {"Underlight" -> Red}]Related Guides
History
Introduced in 1996 (3.0) | Updated in 2016 (11.0)
Text
Wolfram Research (1996), FontVariations, Wolfram Language function, https://reference.wolfram.com/language/ref/FontVariations.html (updated 2016).
CMS
Wolfram Language. 1996. "FontVariations." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FontVariations.html.
APA
Wolfram Language. (1996). FontVariations. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FontVariations.html
BibTeX
@misc{reference.wolfram_2026_fontvariations, author="Wolfram Research", title="{FontVariations}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FontVariations.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_fontvariations, organization={Wolfram Research}, title={FontVariations}, year={2016}, url={https://reference.wolfram.com/language/ref/FontVariations.html}, note=[Accessed: 12-June-2026]}