]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
add a new "scale" property in font files. Specifying, e.g., "scale 1.2" in a font...
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index 17c366bc8d975f8d7ed34e591c52c0f68ee9af33..c4bf81d9bc27f9ba1b6a8aa8752dd8db59eed25e 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -81,7 +81,9 @@ DRAWFLAG_NUMFLAGS
 typedef struct dp_font_s
 {
        rtexture_t *tex;
-       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
+       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 maxwidth; // precalculated max width of the font (includes scale)
+       float scale; // scales the font (without changing line height!)
        char texpath[MAX_QPATH];
        char title[MAX_QPATH];
 }