Tag Link | [PDF_Font] | Category | |
---|---|---|---|
Type | Substitution | Source Available | Yes |
Support | Preferred | Version | 6.0 |
Change | Unchanged | Data Source | Any |
Output Type | PDF_Font | Security | File |
Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Stores all the specifications for a font style. Parameters are used with the [PDF_Font] tag that define the font face, size, color, encoding, and properties. A [PDF_Font] variable is called in the
[Var: 'MyFont' = (PDF_Font:
Required Parameters | |
---|---|
-Face | Specifies the font by its family name (e.g. ïHelveticaÍ). Required if the |
Optional Parameters | |
-File | Creates a font from a local font file. The file name and path to the font must be specified (e.g /Fonts/Courier). |
-Size | Sets the font size in points (e.g 14). Required if the |
-Color | Sets the font color to a [PDF_Color] object or a hex color string (e.g '#EEEE00'). Defaults to '#000000' if not specified. |
-Encoding | Sets the desired font encoding for the font (e.g. 'cp1252'). |
-Embed | Embeds the fonts used within the PDF document as opposed to relying on the client PDF reader for font information. |
To define a font for a PDF document:
The example belows shows how to use the [PDF_Font] tag to define a 14
[Var:'MyFont'=(PDF_Font: