Sets font name and attributes for subsequent DrawText() or DrawTextBox() calls.Syntax:
Code Block |
---|
XFRXDraw::Object.SetFont(tcFontName, tnSize [, tlBold [, tlItalic [, tlUnderline [, tlStrikeThrough]]]]) Watermark.SetFont(tcFontName [, tnSize [, tcFontSTYLE [, tiFontEmbedded]]]) PDFL.SetFont(tcFontName, tnSize [, tlBold [, tlItalic [, tlUnderline [, tnEmbed [, lnCodePage [, tlStrikeThrough]]]]]]) |
Parameters
tcFontName
The font name
...
tlBold, tlItalics, tlUnderline, tlStrikeThrough
The font attributes. These parameters are optional, the default value is .F. Parameter tlStrikeThrough is since XFRX 15.7
lcFontStyle
Font style for watermark text. Can be empty or one of the following values or combinations. Default value is 'N'.
Value | Description |
---|---|
'B' | Bold |
'I' | Italic |
'S' | Underline |
'U' | StrikeThrough |
'N' | Normal |
tiFontEmbedded / tnEmbed
Font embedding.
Value | Description |
---|---|
0 | Font will not be embedded (default value). |
1 | Font will be included as subset. |
2 | Font will be included as all characters. |
3 | Font will be included as UNICODE subset . |
lnCodePage
Code page.
Remarks
Applies To: XFRX#DRAW, XFRX#XML, XFRX#WATERMARK, WATERMARK-Text Object, PDFL#INIT
Examples
Code Block | ||
---|---|---|
| ||
* after calls loSession.SetParams()
m.loWM=EVALUATE([xfrx("XFRX#WATERMARK", m.loSession)])
m.loWM.SetText("W A T E R M AR K")
m.loWM.SetFont("Tahoma", 15, "B")
|