FONTSTYLE
Overview
The FONTSTYLE
and ISMFontStyle
components provide constants for defining font styles in Servoy, such as PLAIN
, BOLD
, ITALIC
, and BOLD_ITALIC
. These constants enable developers to customize text appearance in forms and components, streamlining font style management in scripting.
Constants Summarized
Constants Detailed
BOLD
Bold font style.
Type Number
Sample
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.BOLD,12);
BOLD_ITALIC
Bold and italic font style.
Type Number
Sample
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.BOLD_ITALIC,20);
ITALIC
Italic font style.
Type Number
Sample
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.ITALIC,14);
PLAIN
Plain(normal) font style.
Type Number
Sample
var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.PLAIN,10);
Last updated
Was this helpful?