I'm trying to use the SDL precompiled libraries and having trouble changing the font. I've tried all of the following:
#define PDC_FONT dosemu.bmp
#define PDC_FONT "dosemu.bmp"
#define PDC_FONT dosemu
#define PDC_FONT "dosemu"
dosemu.bmp is in the current directory for the executable. Renaming the bitmap to pdcfont.bmp does change the font, so I know the program is at least capable of switching fonts.
Ah, my bad. Looked through the demos and it turns out PDC_FONT actually needs to be a system environment variable, not a variable within the program. Perhaps the documentation could be updated to clarify this?
I think the documentation is clear. It says "environment variable".
"#define" does not create variables, of any type. (Nor does it set their value.)
Of course, there's also "pdc_font" (lowercase), which is a pointer to an SDL_Surface. That _is_ a variable.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.