FontButton

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 libui-node documentation.

Events

change

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

Example

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

Last updated