typedef struct ft2_font_map_s ft2_font_map_t;
typedef struct ft2_attachment_s ft2_attachment_t;
+#ifdef WIN64
+#define ft2_oldstyle_map ((ft2_font_map_t*)-1LL)
+#else
#define ft2_oldstyle_map ((ft2_font_map_t*)-1)
+#endif
typedef float ft2_kernvec[2];
typedef struct ft2_kerning_s
// TODO: clean this up and do not expose everything.
- //unsigned char *data;
+ const unsigned char *data; // FT2 needs it to stay
//fs_offset_t datasize;
void *face;
size_t attachmentcount;
ft2_attachment_t *attachments;
+ ft2_settings_t *settings;
+
// fallback mechanism
struct ft2_font_s *next;
} ft2_font_t;
qboolean Font_LoadFont(const char *name, dp_font_t *dpfnt);
qboolean Font_GetKerningForSize(ft2_font_t *font, float w, float h, Uchar left, Uchar right, float *outx, float *outy);
qboolean Font_GetKerningForMap(ft2_font_t *font, int map_index, float w, float h, Uchar left, Uchar right, float *outx, float *outy);
-
+float Font_VirtualToRealSize(float sz);
+float Font_SnapTo(float val, float snapwidth);
// since this is used on a font_map_t, let's name it FontMap_*
ft2_font_map_t *FontMap_FindForChar(ft2_font_map_t *start, Uchar ch);
#endif // DP_FREETYPE2_H__