Vuido
  • About Vuido
  • Introduction
  • Installation
    • Manual Configuration
    • Production Builds
  • Usage
    • Window Template
    • Script Section
    • Interpolations
    • Computed Properties
    • Conditionals and Loops
    • Handling User Input
    • Managing Windows
    • Displaying Dialogs
    • Custom Components
    • Using libui Classes
    • Common Attributes
  • Packaging
  • Built-in Components
    • Window
    • Containers
      • Box
      • Form
      • Group
      • Tab
    • Widgets
      • Area
        • AreaGroup
        • AreaPath
        • AreaText
      • Button
      • Checkbox
      • ColorButton
      • Combobox
      • DatePicker
      • DateTimePicker
      • DropdownList
      • FontButton
      • ProgressBar
      • RadioButtons
      • Separator
      • Slider
      • Spinbox
      • Text
      • TextArea
      • TextInput
      • TimePicker
Powered by GitBook
On this page
  • Properties
  • font
  • Events
  • change
  • Example
  1. Built-in Components
  2. Widgets

FontButton

PreviousDropdownListNextProgressBar

Last updated 6 years ago

A button that opens a font selector dialog.

Currently it is not possible to select the font programmatically. The default selected font is platform specific.

Properties

font

type: libui.FontDescriptor

A read-only property of the FontButton element which returns information about the currently selected font. The returned object has the following methods:

  • getFamily() - return the font family

  • getSize() - return the font size

  • getWeight() - return the font weight

  • getItalic() - return the italic style

  • getStretch() - return the font stretch

For more information, see the .

Events

change

Emitted when the selected font is changed. The current font descriptor is passed as an argument.

Example

<FontButton v-on:change="onFontChange"/>
libui-node documentation