To use these functions you must add DPIncludes.dba to your project.
#CONSTANT TRUE = 1
#CONSTANT FALSE = 0
#constant UNITS_INCHES = 0
#constant UNITS_MM = 1
#CONSTANT UNITS_CM = 2
#CONSTANT UNITS_M = 3
#CONSTANT UNITS_POINTS = 4
Defines a Dark Basic type called PFONT you may use PFONT to hold information about a printer font
TYPE PFont
Name As String name of the font
Bold As Boolean font style bold if true
Italic As Boolean font style italic if true
Underline As Boolean font style underline if true
Strikethrough As Boolean font style strikethrough if true
Size As Integer size of the font in points 1 = 1/72 of an inch
ENDTYPE
GLOBAL G_CPF AS Pfont certain functions return their results using this variable as Dark Basic does not have a mechanism for returning types as the results of functions