load_font

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

load_font(char *font, char nb_char);
load_font(char *font, char nb_char, int vaddr);

     Load a custom font in video memory. Used together
     with the #incchr directive it will allow you to load
     a font from a PCX file. Note that custom fonts are
     colored fonts, so they won't be affected by any
     previous call to set_font_color().
     The number of character to load range from 0 to 224,
     ASCII characters 0 to 31 are never used, and can't
     be defined, you must start your font at the space
     character, which is ASCII code 32.
     If you don't implicitely give a video memory address,
     the function will load your font just above
     the BAT (usualy it's address 0x800).
Personal tools