void LoadFonts() { for (int i = 0; i < game.numfonts; ++i) { int fontsize = game.fontflags[i] & FFLG_SIZEMASK; if (fontsize == 0) fontsize = 8; if ((game.options[OPT_NOSCALEFNT] == 0) && game.IsHiRes()) fontsize *= 2; FontRenderParams params; params.YOffset = game.fontvoffset[i]; if (!wloadfont_size(i, fontsize, ¶ms)) quitprintf("Unable to load font %d, no renderer could load a matching file", i); } }
void LoadFonts() { for (int i = 0; i < game.numfonts; ++i) { FontInfo finfo = game.fonts[i]; // Apply compatibility adjustments if (finfo.SizePt == 0) finfo.SizePt = 8; // CLNUP decide what to do about arbitrary font scaling, might become an option // TODO: for some reason these compat fixes are different in the editor, investigate /* if ((game.options[OPT_NOSCALEFNT] == 0) && game.IsHiRes()) finfo.SizePt *= 2; */ if (!wloadfont_size(i, finfo, NULL)) quitprintf("Unable to load font %d, no renderer could load a matching file", i); } }