08-28-2023, 12:31 PM
(08-28-2023, 12:00 PM)grymmjack Wrote:The tool is here: a740g/Bin2Data: Binary to DATA converter and library for QB64-PE (github.com)(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.@a740g where can we find Bin2Data ?
```
' 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
```
Most of the core library stuff is right inside a740g/Toolbox64: A740g's collection of libraries for QB64-PE (github.com)