BASFONT - Turns a FONT into BAS code SUB for using in your programs.
#6
(08-28-2023, 06:59 AM)a740g Wrote: You could just embed the TTF in your code and then load the font with QB64-PE's _LOADFONT(..., "memory", ...) extension.

Code: (Select All)

' Loads a binary file encoded with Bin2Data
' Usage:
'  1. Encode the binary file with Bin2Data
'  2. Include the file or it's contents
'  3. Load the file like so:
'      Restore label_generated_by_bin2data
'      Dim buffer As String
'      buffer = LoadResource  ' buffer will now hold the contents of the file
@a740g where can we find Bin2Data ?
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
RE: BASFONT - Turns a FONT into BAS code SUB for using in your programs. - by grymmjack - 08-28-2023, 12:00 PM



Users browsing this thread: 1 Guest(s)