Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

```
' 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

Possibly Related Threads…
Thread Author Replies Views Last Post
  CP437FONT - SUB to easily provide re-sizable CP437 font to use. Dav 0 203 12-16-2025, 02:02 PM
Last Post: Dav
  BASFILE - Converts small files to BAS code. Dav 24 7,639 10-02-2023, 01:46 AM
Last Post: Dav
  BASIMAGE - Put image files in BAS code to use with _PUTIMAGE Dav 12 3,797 07-17-2023, 03:18 AM
Last Post: SpriggsySpriggs
  UnscramblePic.bas - Rotate picture pieces puzzle Dav 14 3,756 07-15-2023, 07:12 PM
Last Post: Steffan-68

Forum Jump:


Users browsing this thread: 1 Guest(s)