BASFONT - Turns a FONT into BAS code SUB for using in your programs.
#8
(08-28-2023, 12:00 PM)grymmjack Wrote:
(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 ?
The tool is here: a740g/Bin2Data: Binary to DATA converter and library for QB64-PE (github.com)

Most of the core library stuff is right inside a740g/Toolbox64: A740g's collection of libraries for QB64-PE (github.com)
Reply


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



Users browsing this thread: 4 Guest(s)