Specifications
4 Programming GUIs
4-16
Specifying a Fixed-Width Font
If you want to use a fixed-width font for a uicontrol, set its FontName property
to the string
fixedwidth. This special identifier ensures that your GUI uses
the standard fixed-width font for the target platform.
You can find the name of the fixed-width font that is used on a given platform
by querying the root
FixedWidthFontName property.
get(0,'FixedWidthFontName')
Using a Specific Font Name
You can specify an actual font name (such as Times or Courier) for the
FontName property. However, doing so may cause your GUI to look poorly when
run on a different computer. If the target computer does not have the specified
font, it will substitute another font that may not look good in your GUI or may
not be the standard font used for GUIs on that system. Also, different versions
of the same named font may have different size requirements for a given set of
characters.
Using Standard Background Color
By default, uicontrols use the standard background color for the platform on
which it is running (e.g., the standard shade of gray on the PC differs from that