TftPrintBdfString()

Library Description ›› Fonts ›› BDF ››
 visits
Parent Previous Next

Syntax

TftPrintBdfString(sString As sTftString, swX_Pos As SWord, swY_Pos As SWord, wEndOfLine As Word, bBreakLine As Byte, wForeColor As Word, wBackColor As Word, pTransparent As Bit)

Parameters

Parameter

Description

sString

A null-terminated string to print, up to 72 characters.

swX_Pos

The absolute X-position of the character's lower-left corner.

swY_Pos

The absolute Y-position of the character's lower-left corner.

wEndOfLine

The absolute X-position for the last character in the printed line.
0: Max screen width.

Overview

bBreakLine — Defines how long words are broken into new lines:

wForeColor — The 16-bit RGB565 color for the character (used for the active pixels of the glyph).

wBackColor — The 16-bit RGB565 color for the background (used for empty pixels in the glyph box).

pTransparent — Whether to use transparency:

Print a string using BDF font.

Example

TftPrintBdfString("TEST", 1, 1, 310, 0, WHITE, BLACK, 0)

Notes

Include "TftLib\Fonts\SND\F5_BDF_Sail-Regular-25.inc"

'....

TftSetUp(0, 0)

TftSetBdfFont(5)

TftResetScreen(BLUE)

TftPrintBdfString("The worst of all deceptions is self-deception.", 40, 220, 280, 0, YELLOW, BLACK, 1)

TftPrintBdfString("The worst of all deceptions is self-deception.", 40, 190, 280, 1, YELLOW, BLACK, 1)

TftPrintBdfString("The worst of all deceptions is self-deception.", 40, 160, 280, 2, YELLOW, BLACK, 1)

TftPrintBdfString("The worst of all deceptions is self-deception.", 40, 100, 280, 3, YELLOW, BLACK, 1)

TftPrintBdfString("The worst of all deceptions is self-deception.", 40, 70, 280, 4, YELLOW, BLACK, 1)



TftPrintBdfString()

Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily