Changing current font

You can change the current font used by the TextOut and TextOutCenter methods of the CRMGraphicBlock object. For example, you can select a font to use, determine the font size, specify the font color, and apply a rotation effect to the text output.

Selecting a font

Use the following syntax to select a font:

Copy
Font('Name','<FontName>');

Where <FontName> is the name of the font installed on the Sage CRM server.

Example

Copy
Font('Name','Times New Roman');

Setting font size

Use the following syntax to set the font size:

Copy
Font('Size','<FontSize>');

Where <FontSize> is the font size you want to use.

Example

Copy
Font('Size','24');

Alternatively, you can use the FontSize method:

Copy
FontSize('24');

Setting font color

Use the following syntax to set the font color:

Copy
Font('Color','<ColorName>');

Where <ColorName> is the name of the font color you want to use.

Example

Copy
Font('Color','Blue');

Alternatively, you can use the FontColor method:

FontColor('Blue');

Setting font style

Use the following syntax to set the desired font style:

Copy
Font('<Parameter>','<Value>');

In this syntax, use one of the following parameters:

  • Underline. Toggles between underlined and normal font. This parameter can take one of the following values:
    • True. Underlines the current font.
    • False. Specifies to use normal font.
  • Italic. Toggles between italic and normal font. This parameter can take one of the following values:
    • True. Italicizes the current font.
    • False. Specifies to use normal font.
  • Strikeout. Toggles between striked out and normal font. This parameter can take one of the following values:
    • True. Adds a line through the middle of the current font.
    • False. Specifies to use normal font.

Examples

Copy
Font('Underline','True');
Copy
Font('Italic','False');
Copy
Font('Strikeout','False');

Rotating text output

Use the following syntax to rotate your text:

Copy
Font('Rotate','<Angle>');

Where <Angle> is the angle by which to rotate the text.

Example

Copy
Font('Rotate','45');