]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - ft2_fontdefs.h
Add an in_releaseall command for debugging/working around stuck keys.
[xonotic/darkplaces.git] / ft2_fontdefs.h
index 20726d03a1f76fd23faaa45393aac1230053a6b4..3f08187db52e355bc65d1058273c3f75e0ac49da 100644 (file)
@@ -34,7 +34,7 @@ struct ft2_font_map_s
        float                  intSize;
        int                    glyphSize;
 
-       rtexture_t            *texture;
+       cachepic_t            *pic;
        qboolean               static_tex;
        glyph_slot_t           glyphs[FONT_CHARS_PER_MAP];
 
@@ -43,11 +43,14 @@ struct ft2_font_map_s
        ft2_kerning_t          kerning;
        // safes us the trouble of calculating these over and over again
        double                 sfx, sfy;
+
+       // the width_of for the image-font, pixel-snapped for this size
+       float           width_of[256];
 };
 
 struct ft2_attachment_s
 {
-       unsigned char *data;
+       const unsigned char *data;
        fs_offset_t    size;
 };