]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - ft2_fontdefs.h
removing one more reciprocal...
[xonotic/darkplaces.git] / ft2_fontdefs.h
index 20726d03a1f76fd23faaa45393aac1230053a6b4..34c1637014c9ef7863e44987a90ba113f065d6bf 100644 (file)
@@ -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;
 };