LassoScript Utility
Basics Browse Detail

[PDF_Font]

Tag Link [PDF_Font] Category PDF
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

Description

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 -Font parameter of another [PDF_...] tag.

Syntax

[Var: 'MyFont' = (PDF_Font:
-Face='Helvetica',
-Size=Integer,
-Color='Hex Color String',
-Encoding='Encoding String',
-Embed)]

Parameters

Required Parameters
-Face Specifies the font by its family name (e.g. ïHelveticaÍ). Required if the -File parameter is not used. Allowed font names are Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Symbol, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, and ZapfDingbats.
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 -File parameter is not used.
-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.

Examples

To define a font for a PDF document:

The example belows shows how to use the [PDF_Font] tag to define a 14-point red Helvetica font for use in a PDF document. The variable $MyFont can be used as the value for the -Font parameter of any [PDF_Doc_...] tag.

[Var:'MyFont'=(PDF_Font: -Face='Helvetica',
-Size=14,
-Color='#990000')]

Related Tags