(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 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 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 rather suggest doing what @SMcNeill said or if you are willing to wait, then we may have a way of loading PSF fonts (soonish).