#ifndef __HBF_API_H
#define __HBF_API_H
#include "chinese.h"
#include <stdio.h>
typedef struct
{
  FILE *fp;
  double ver;
  int scheme;
  char *font;
  int wx,wy,dx,dy,fwx,fwy,fdx,fdy;
  char *family_name;
  char *add_style_name;
  unsigned short default_char;
  char *copyright;
  char *notice;
  int chars;
  int numb2range;
  int numcoderange;
  CHAR *b2range;
  unsigned short *coderange;
  unsigned short *codestart;
  int charsofline;
  char **chfile;
  int *chlen;
  FILE **chfp;
  CHAR b2tran[256];
  int sizeb;

} HBF;

#define SCHEME_GB         1
#define SCHEME_BIG5       2
#define SCHEME_BIG5_ETEN  3
#define SCHEME_UNICODE    4
HBF *HBF_OpenFont(char *);

#endif
