DarkBASIC Professional Help File

DX11:FONT

Contains functionality for handling bitmap fonts, which are used in concert with labels in order to write text to the screen.

    DX11 LOAD FONT : Return Dword = DX11 LOAD FONT(fontSheetFileName, firstCharacter, across, down, spaceWidth, [monoSpace])

    DX11 GET DEFAULT FONT : Return Dword = DX11 GET DEFAULT FONT()

    DX11 DELETE FONT : DX11 DELETE FONT font

    DX11 FONT EXISTS : Return Boolean = DX11 FONT EXISTS(font)

    DX11 GET TEXT WIDTH : Return Dword = DX11 GET TEXT WIDTH(font, text)

    DX11 GET TEXT HEIGHT : Return Dword = DX11 GET TEXT HEIGHT(font, text)

    DX11 GET FONT CHARACTER : Return Dword pixelmap  = DX11 GET FONT CHARACTER(font, character)

    DX11 PRINT TO PIXELMAP : Return Dword pixelmap  = DX11 PRINT TO PIXELMAP(font, text)