Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: font

Parameters: aFont (font)

Returns a copy of aFont, suitable for further modification.

Note: You must always copy the font prior to modification; else you may modify the original object.

Usage

var aFont = UI.makeFont ( "Helvetica", 20, "bold" );
var bFont = UI.copyFont ( aFont );
bFont.size = 30;
// bFont is { family: "Helvetica", size: 30, weight: "bold" );

Version

0.3 Introduced; Docs Valid

Clone this wiki locally