]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
Fix several long-lasting font rendering problems:
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index 381dd35ebadc63e4da6d2b2d60237eab4ac2643a..c703c80ce9ce08767af73f8814a6a04831c22ee3 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -1,5 +1,6 @@
 /*
 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
@@ -96,6 +97,7 @@ 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];