21 #ifndef TESSERACT_CCSTRUCT_FONTINFO_H_
22 #define TESSERACT_CCSTRUCT_FONTINFO_H_
82 (*spacing_vec)[uch_id] = spacing_info;
98 if (prev_fsi ==
NULL || fsi ==
NULL)
return false;
103 if (i < prev_fsi->kerned_unichar_ids.size()) {
bool write_info(FILE *f, const FontInfo &fi)
bool read_info(FILE *f, FontInfo *fi, bool swap)
bool read_set(FILE *f, FontSet *fs, bool swap)
bool CompareFontInfo(const FontInfo &fi1, const FontInfo &fi2)
bool CompareFontSet(const FontSet &fs1, const FontSet &fs2)
bool DeSerialize(bool swap, FILE *fp)
bool write_spacing_info(FILE *f, const FontInfo &fi)
ScoredFont(int font_id, uinT16 classifier_score)
GenericVector< UNICHAR_ID > kerned_unichar_ids
bool SetContainsMultipleFontProperties(const GenericVector< ScoredFont > &font_set) const
const FontSpacingInfo * get_spacing(UNICHAR_ID uch_id) const
bool is_fixed_pitch() const
void FontSetDeleteCallback(FontSet fs)
bool get_spacing(UNICHAR_ID prev_uch_id, UNICHAR_ID uch_id, int *spacing) const
void add_spacing(UNICHAR_ID uch_id, FontSpacingInfo *spacing_info)
void FontInfoDeleteCallback(FontInfo f)
void MoveTo(UnicityTable< FontInfo > *target)
bool Serialize(FILE *fp) const
void swap(int index1, int index2)
bool DeSerialize(bool swap, FILE *fp)
GenericVector< FontSpacingInfo * > * spacing_vec
void init_spacing(int unicharset_size)
void MoveSpacingInfoFrom(FontInfoTable *other)
bool SetContainsFontProperties(int font_id, const GenericVector< ScoredFont > &font_set) const
bool read_spacing_info(FILE *f, FontInfo *fi, bool swap)
bool Serialize(FILE *fp) const
bool write_set(FILE *f, const FontSet &fs)
GenericVector< inT16 > kerned_x_gaps