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