Usina BRAdvPL Guide
Sign in
← All topics
COMMANDUnder review

SET PRINT FONT

SET PRINT FONT nFont [SIZE nWidth,nHeight] [BOLD] [UNDERLINE] [ITALIC]

Selects a printing font in the historical variant.

SET PRINT FONTAdvPL
01 · OVERVIEW

Overview

Historical eAdvPL reference, section 13.1. Syntax depends on that implementation’s macros and platform; current SmartClient support is unconfirmed. A numeric identifier selects the font, with optional dimensions and styles. The reference warns that some printers do not support the command. We assign no font name to the number: obtain it from device documentation. Output must already be prepared; this is neither TFont construction nor PDF generation. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SET PRINT FONT nFont [SIZE nWidth,nHeight] [BOLD] [UNDERLINE] [ITALIC]

Return value

No useful return documented in this subset.

03 · PRACTICAL EXAMPLE

Commented example

// Fragment: nFont verified for the device; output already prepared.
SET PRINT FONT nFont BOLD
Expected result

Requests the font and bold style, subject to device support. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Verify includes and graphical context in the target release. The fragment assumes the stated objects; it is not a complete application. Do not use in headless execution.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de referência eAdvPL. §13.1. Cópia pública histórica, consultada nas seções citadas. Accessed on 2026-10-28.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha