/*
Copyright (C) 1996-1997 Id Software, Inc.
+Copyright (C) 2000-2021 DarkPlaces contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#define MAX_FONT_SIZES 16
#define MAX_FONT_FALLBACKS 3
+#define MAX_FONT_CMDLINE MAX_QPATH * (MAX_FONT_FALLBACKS + 1)
typedef struct dp_font_s
{
cachepic_t *pic;
float width_of[256]; // width_of[0] == max width of any char; 1.0f is base width (1/16 of texture width); therefore, all widths have to be <= 1 (does not include scale)
+ float width_of_ft2[MAX_FONT_SIZES][256];
float maxwidth; // precalculated max width of the font (includes scale)
char texpath[MAX_QPATH];
char title[MAX_QPATH];
struct ft2_font_s *ft2;
ft2_settings_t settings;
+
+ char cmdline[MAX_FONT_CMDLINE];
}
dp_font_t;