21 #ifndef TESSERACT_CCSTRUCT_FONTINFO_H_
22 #define TESSERACT_CCSTRUCT_FONTINFO_H_
55 (*spacing_vec)[uch_id] = spacing_info;
71 if (prev_fsi ==
NULL || fsi ==
NULL)
return false;
76 if (i < prev_fsi->kerned_unichar_ids.size()) {
bool write_info(FILE *f, const FontInfo &fi)
void add_spacing(UNICHAR_ID uch_id, FontSpacingInfo *spacing_info)
bool CompareFontInfo(const FontInfo &fi1, const FontInfo &fi2)
GenericVector< FontSpacingInfo * > * spacing_vec
bool CompareFontSet(const FontSet &fs1, const FontSet &fs2)
bool write_spacing_info(FILE *f, const FontInfo &fi)
bool write_set(FILE *f, const FontSet &fs)
const FontSpacingInfo * get_spacing(UNICHAR_ID uch_id) const
GenericVector< inT16 > kerned_x_gaps
bool is_fixed_pitch() const
void FontSetDeleteCallback(FontSet fs)
void FontInfoDeleteCallback(FontInfo f)
bool get_spacing(UNICHAR_ID prev_uch_id, UNICHAR_ID uch_id, int *spacing) const
bool read_set(FILE *f, FontSet *fs, bool swap)
bool read_info(FILE *f, FontInfo *fi, bool swap)
bool read_spacing_info(FILE *f, FontInfo *fi, bool swap)
void init_spacing(int unicharset_size)
GenericVector< UNICHAR_ID > kerned_unichar_ids