Lasso Soft Inc. > Home


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
  • Parameters
[Var: 'MyFont' = (PDF_Font:
-Color='Hex Color String',
-Encoding='Encoding String',
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.

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', 
Tag Link [PDF_Font] Category PDF
Type Substitution Data Source Any
Support Preferred Version 6.0
Output Type PDF_Font Security File
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft