FLsetFont

FLsetFont — Sets the font type of a FLTK widget.

Description

Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac. The plugin repository can be found here: https://github.com/csound/plugins

FLsetFont sets the font type of the target widget.

Syntax

FLsetFont ifont, ihandle

Initialization

ifont -- sets the the font type of the label of a widget.

Legal values for ifont argument are:

  • 1 - Helvetica (same as Arial under Windows)

  • 2 - Helvetica Bold

  • 3 - Helvetica Italic

  • 4 - Helvetica Bold Italic

  • 5 - Courier

  • 6 - Courier Bold

  • 7 - Courier Italic

  • 8 - Courier Bold Italic

  • 9 - Times

  • 10 - Times Bold

  • 11 - Times Italic

  • 12 - Times Bold Italic

  • 13 - Symbol

  • 14 - Screen

  • 15 - Screen Bold

  • 16 - Dingbats

ihandle -- an integer number (used as unique identifier) taken from the output of a previously located widget opcode (which corresponds to the target widget). It is used to unequivocally identify the widget when modifying its appearance with this class of opcodes. The user must not set the ihandle value directly, otherwise a Csound crash will occur.

See Also

FLcolor2, FLhide, FLlabel, FLsetAlign, FLsetBox, FLsetColor, FLsetColor2, FLsetFont, FLsetPosition, FLsetSize, FLsetText, FLsetTextColor, FLsetTextSize, FLsetTextType, FLsetVal_i, FLsetVal, FLshow

Credits

Author: Gabriel Maldonado

New in version 4.22