FontSize
Details
- The size of a font is typically taken to be the distance from the top of the highest character to the bottom of the lowest character.
- A printer's point is approximately
of an inch. - Fonts with the same nominal point size may not look the same size to the eye.
- In graphics, FontSize->Scaled[s] gives a font whose point size is a fraction s of the horizontal plot range.
Examples
open all close allBasic Examples (1)
Scope (4)
Specify the font size without using an option:
Table[Text[Style["ABC", s]], {s, {12, 24, 36}}]Text[Style[{"ABC", Style["ABC", Smaller], Style["ABC", Larger]}, 24]]Specify a font size that is 0.3 times the width of the graphic:
Graphics[Text[Style["ABC", FontSize -> Scaled[.3]]]]Making the graphic smaller makes the font get correspondingly smaller:
Show[%, ImageSize -> {50, 50}]Font size can be specified in style-related options:
Plot[Sin[x], {x, 0, 10}, LabelStyle -> (FontSize -> 14)]ContourPlot[Sin[x y], {x, 0, 1}, {y, 0, 1}, FrameStyle -> Tiny]Tech Notes
Related Guides
Related Workflows
- Add Styling to Text
History
Introduced in 1996 (3.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1996), FontSize, Wolfram Language function, https://reference.wolfram.com/language/ref/FontSize.html (updated 2007).
CMS
Wolfram Language. 1996. "FontSize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/FontSize.html.
APA
Wolfram Language. (1996). FontSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FontSize.html
BibTeX
@misc{reference.wolfram_2026_fontsize, author="Wolfram Research", title="{FontSize}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FontSize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_fontsize, organization={Wolfram Research}, title={FontSize}, year={2007}, url={https://reference.wolfram.com/language/ref/FontSize.html}, note=[Accessed: 13-June-2026]}