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:
Font('Name','<FontName>');
Where <FontName> is the name of the font installed on the Sage CRM server.
Example
Font('Name','Times New Roman');
Setting font size
Use the following syntax to set the font size:
Font('Size','<FontSize>');
Where <FontSize> is the font size you want to use.
Example
Font('Size','24');
Alternatively, you can use the FontSize method:
FontSize('24');
Setting font color
Use the following syntax to set the font color:
Font('Color','<ColorName>');
Where <ColorName> is the name of the font color you want to use.
Example
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:
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
Font('Underline','True');
Font('Italic','False');
Font('Strikeout','False');
Rotating text output
Use the following syntax to rotate your text:
Font('Rotate','<Angle>');
Where <Angle> is the angle by which to rotate the text.
Example
Font('Rotate','45');