You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

PRIM_PDF - setFont Method
Sets text font face, variant for upcoming text elements
Member of PRIM_PDF (PRIM_PDF)

Parameters

Name

Type

Data Type

Description

Font

*Input

Unicode String

Font name or family

Style

*Input (Optional)

Enumeration

Font style or variant

Details


Sets the text font and variant (style) for upcoming text elements.
Currently the following fonts are supported:

  1. Courier
  2. Helvetica
  3. Noto Sans
  4. Noto Sans CJK jp (Normal and Bold only)
  5. Roboto
  6. Times
  7. Verdana


Example


Set the font and style
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
#pdf.start
#pdf.setFont Font('Verdana') Style(Italic)
#pdf.text Text('Hello world!') Left(10) Top(10)
#pdf.save Filename('myReport.pdf')

Style Allowed Values

Enum Value

Description

Normal

Normal font style

Bold

Bold font style

Italic

Italisized font style

BoldItalic

Bold and italisized font style

See also

All Component Classes
Technical Reference

  • No labels