tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
21 #ifndef TESSERACT_CCSTRUCT_FONTINFO_H_
22 #define TESSERACT_CCSTRUCT_FONTINFO_H_
75 spacing_vec->init_to_size(unicharset_size,
nullptr);
82 (*spacing_vec)[uch_id] = spacing_info;
98 if (prev_fsi ==
nullptr || fsi ==
nullptr)
return false;
103 if (i < prev_fsi->kerned_unichar_ids.size()) {
void FontInfoDeleteCallback(FontInfo f)
void add_spacing(UNICHAR_ID uch_id, FontSpacingInfo *spacing_info)
GenericVector< UNICHAR_ID > kerned_unichar_ids
bool get_spacing(UNICHAR_ID prev_uch_id, UNICHAR_ID uch_id, int *spacing) const
bool write_set(FILE *f, const FontSet &fs)
ScoredFont(int font_id, uint16_t classifier_score)
bool write_info(FILE *f, const FontInfo &fi)
const FontSpacingInfo * get_spacing(UNICHAR_ID uch_id) const
bool Serialize(FILE *fp) const
bool read_spacing_info(TFile *f, FontInfo *fi)
bool write_spacing_info(FILE *f, const FontInfo &fi)
GenericVector< FontSpacingInfo * > * spacing_vec
bool SetContainsMultipleFontProperties(const GenericVector< ScoredFont > &font_set) const
GenericVector< int16_t > kerned_x_gaps
void FontSetDeleteCallback(FontSet fs)
void MoveTo(UnicityTable< FontInfo > *target)
bool SetContainsFontProperties(int font_id, const GenericVector< ScoredFont > &font_set) const
bool CompareFontSet(const FontSet &fs1, const FontSet &fs2)
bool is_fixed_pitch() const
void init_spacing(int unicharset_size)
bool DeSerialize(TFile *fp)
bool read_info(TFile *f, FontInfo *fi)
bool DeSerialize(TFile *fp)
bool CompareFontInfo(const FontInfo &fi1, const FontInfo &fi2)
void MoveSpacingInfoFrom(FontInfoTable *other)
bool Serialize(FILE *fp) const
bool read_set(TFile *f, FontSet *fs)