A script-enabled browser is required for this page to function properly.

Managing Font Objects

Font objects (class Font) objects are Forms objects which do not appear in the Form Builder. All font properties can be inspected and set individually object-by-object. The Font object is a convenience which encapsulates all the font properties of an object. These properties can be modified and applied to other objects without affecting the original.

Font objects can be created using new() and then derived from other Forms objects using the Font.extract() method.

Forms objects can have several "sets" of font properties:

When extracting font information, you must select one of these sets. Subsequently, when applying the Font object to another object you must select the target set. For example:

  
  ...
// extract the 'common' font attributes from block1 
Font fnt = new Font("Font1");
fnt.extract(block1, JdapiTypes.VATY_COMMON_CTID); 

// and apply that Font to all 3 font attribute 'sets' on block2
fnt.apply(block2, JdapiTypes.VATY_COMMON_CTID);
fnt.apply(block2, JdapiTypes.VATY_PROMPT_CTID); 
fnt.apply(block2, JdapiTypes.VATY_TITLE_CTID);
  ...