FontFamily

FontFamily
is an option for Style and Cell that specifies the font family in which text should be rendered.

DetailsDetails

  • The default is FontFamily->"Courier". Other common choices are and .
  • Mathematica will combine settings for FontFamily, FontWeight, FontSlant, FontTracking, and sometimes FontSize to construct a complete name for the font you want. It will then use this name, together with any settings you have specified for and , to try to locate an appropriate font on your particular computer system.
  • When generating PostScript output on a printer or otherwise, settings you give for are typically used in preference to other font specifications.
  • Mathematica will try making replacements for the font family name that you specify with the option FontSubstitutions.
  • Mathematica by default uses heuristics such as translating to for appropriate computer systems.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Use font family:

In[1]:=
Click for copyable input
Out[1]=

Use font family:

In[2]:=
Click for copyable input
Out[2]=

Use font family:

In[3]:=
Click for copyable input
Out[3]=

Font family can be specified in style-related options:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »