X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=ft2_fontdefs.h;h=3f08187db52e355bc65d1058273c3f75e0ac49da;hb=a22f1a10e5225c4df6387acf73ba5cce918cdea2;hp=20726d03a1f76fd23faaa45393aac1230053a6b4;hpb=34ac3e1a25d3b1541a7b32e89c63812b52c3edac;p=xonotic%2Fdarkplaces.git diff --git a/ft2_fontdefs.h b/ft2_fontdefs.h index 20726d03..3f08187d 100644 --- a/ft2_fontdefs.h +++ b/ft2_fontdefs.h @@ -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; };