GUIKit`
GUIKit`

"FontChooser"

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

Widget["FontChooser"]

provides a panel for making a font selection based on a name, style, and size.

Details

  • To use Widget["FontChooser"], you first need to load GUIKit using Needs["GUIKit`"].
  • An instance of Widget["FontChooser"] can be placed within any user-interface definition, and you can bind to the chooser's "selectionModel" to be notified whenever the currently selected font changes.
  • The following properties are available:
  • "selectionModel"DefaultFontSelectionModelmodel that intercedes selection operations between the user interface and the data
    "font"12-point plain serifcurrently selected font
    "showLogicalFonts"Truewhether logical font names will display as choices
    "showPhysicalFonts"Truewhether physical font names will display as choices
    "sizes"8,9,10,11,12,14,16,18,20,24,28,32,36,48,72font size choices to display
    "allowAnySize"Truewhether any size can be entered or only those values present in the list
    "familyNames"Nullfont family name choices to display
    "previewPanel"DefaultPreviewPanelpreview panel display widget
  • The "selectionModel" property allows for binding to its "change" event to know when the selected color changes.

Examples

open allclose all

Basic Examples  (1)

Generalizations & Extensions  (1)

Get Wolfram Language style font primitives by binding to the active selected font: