#ifndef GFD_FONT_H_
#define GFD_FONT_H_

#ifdef __cplusplus
extern "C" {
#endif


typedef struct {
  const unsigned char* glyphs;
  int w;
} gfd_font256_glyphs_info_t;

typedef struct {
  unsigned int spare;
  int w;
} gfd_font256_extra_info_t;

struct gfd_font256_tag_t {
  const char*name;
  int width, height;
  int occlusion_width, occlusion_height;
  int char_spacing, word_spacing;
  int glyphs_witdh, glyphs_height;

  int special_dot_width;
  int special_dot_shift;

  int ofsx, ofsy, backx;

  gfd_font256_glyphs_info_t map[256+1];

  gfd_font256_extra_info_t extra;
};

#ifdef __cplusplus
}
#endif

#endif /*GFD_FONT_H_*/
