Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screen fonts in SCREEN 0
#5
(05-07-2024, 08:29 PM)bplus Wrote: ha what a coincidence i've been working on screen 0 font editor all morning and afternoon.

i modified the Shmup game with few special characters i edited cannon and 2 sides of landing gear

attached is game, still working on naming system for editor


you need charset.h in same folder as qb64
Code: (Select All)
extern uint8 charset8x8[256][8][8];
extern uint8 charset8x16[256][16][8];

void Charset_8x16 (ptrszint offset){
memcpy(charset8x16,(void*)offset,sizeof(charset8x16));
}

void Charset_8x8 (ptrszint offset){
memcpy(charset8x8,(void*)offset,sizeof(charset8x8));
}
I would not recommend this at all. This stuff is not portable and assumes the existence of some QB64 undocumented internals which can change in the future.

I would rather suggest doing what @SMcNeill said or if you are willing to wait, then we may have a way of loading PSF fonts (soonish).
Reply


Messages In This Thread
Screen fonts in SCREEN 0 - by BDS107 - 05-07-2024, 02:57 PM
RE: Screen fonts in SCREEN 0 - by SMcNeill - 05-07-2024, 03:16 PM
RE: Screen fonts in SCREEN 0 - by TerryRitchie - 05-07-2024, 04:41 PM
RE: Screen fonts in SCREEN 0 - by bplus - 05-07-2024, 08:29 PM
RE: Screen fonts in SCREEN 0 - by a740g - 05-07-2024, 10:58 PM
RE: Screen fonts in SCREEN 0 - by TerryRitchie - 05-08-2024, 01:32 AM
RE: Screen fonts in SCREEN 0 - by a740g - 05-08-2024, 03:43 AM
RE: Screen fonts in SCREEN 0 - by bplus - 05-08-2024, 01:39 AM
RE: Screen fonts in SCREEN 0 - by SMcNeill - 05-08-2024, 02:41 AM
RE: Screen fonts in SCREEN 0 - by bplus - 05-08-2024, 09:37 AM
RE: Screen fonts in SCREEN 0 - by BDS107 - 05-08-2024, 01:58 PM



Users browsing this thread: 4 Guest(s)