'' draw string ascii only '' '' Usage: test_bitmapasciifont.exe INPUT_FONT.bmp '' '' by mieki256 '' License: CC0 / Public Domain '' Last updated: <2024/02/13 05:18:04 +0900> #include "bitmapasciifont.bi" If Command(1) = "" Then Print "Usage: " & Command(0) & " INPUT_FONT.bmp" : end End If Dim As String fontfile = Command(1) Const SCRW = 640 Const SCRH = 480 Dim As Integer sdepth = 32 ScreenRes SCRW, SCRH, sdepth Dim fnt As BitmapAsciiFont fnt.load_image(fontfile) Dim As Integer h = fnt.cheight + 1 fnt.draw_string(0, h * 0, "Load: " & fontfile) fnt.draw_string(0, h * 1, "Hello World ! 0123456789") fnt.draw_string(0, h * 2, "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_") fnt.draw_string(0, h * 3, "`abcdefghijklmnopqrstuvwxyz{|}~ ") fnt.draw_string(0, h * 4, "Push any key to exit.") sleep fnt.destroy()