User`s guide
Designing for Cross-Platform Compatibility
Designing for Cross-Platform Compatibility
In this section...
“Default System Font” on page 6-137
“Standard Background Colo r” on page 6-138
“Cross-Platform Compatible U nits” on page 6-139
Default System Font
By default, user interface controls (uicontrols) use the default font for the
platform on which they are running. F or example, when displaying your GUI
on PCs, uicontrols use MS San Serif. When your GUI runs on a different
platform, it uses that computer’s default font. This provides a consistent look
with respect to y our GUI and other application GUIs.
If you have set the
FontName property to a named font and want to return
to the default value, you can set the property to the string
default.This
ensures that the software uses the system default at run-time.
You can use the Property Inspector to set this property:
As an alternative, use the se t command to set the property in the GUI code
file. For example, if there is a push button in your GUI and its handle is
stored in the
pushbutton1 field of th e handles structure, then the statement
set(handles.pushbutton1,'FontName','def ault')
sets the FontName property to use the system default.
6-137