FontSize

FontSize

is an option for Style and Cell that specifies the default size in printer's points of the font in which to render text.

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 allclose all

Basic Examples  (1)

Specify the font size in printer's points:

Specify the absolute font size using predefined symbolic values:

Scope  (4)

Specify the font size without using an option:

Use relative font sizes:

Specify a font size that is 0.3 times the width of the graphic:

Making the graphic smaller makes the font get correspondingly smaller:

Font size can be specified in style-related options:

Wolfram Research (1996), FontSize, Wolfram Language function, https://reference.wolfram.com/language/ref/FontSize.html (updated 2007).

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_2024_fontsize, author="Wolfram Research", title="{FontSize}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FontSize.html}", note=[Accessed: 18-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fontsize, organization={Wolfram Research}, title={FontSize}, year={2007}, url={https://reference.wolfram.com/language/ref/FontSize.html}, note=[Accessed: 18-December-2024 ]}