tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::FontInfo Struct Reference

#include <fontinfo.h>

Collaboration diagram for tesseract::FontInfo:

Public Member Functions

 FontInfo ()
 
 ~FontInfo ()=default
 
bool Serialize (FILE *fp) const
 
bool DeSerialize (TFile *fp)
 
void init_spacing (int unicharset_size)
 
void add_spacing (UNICHAR_ID uch_id, FontSpacingInfo *spacing_info)
 
const FontSpacingInfoget_spacing (UNICHAR_ID uch_id) const
 
bool get_spacing (UNICHAR_ID prev_uch_id, UNICHAR_ID uch_id, int *spacing) const
 
bool is_italic () const
 
bool is_bold () const
 
bool is_fixed_pitch () const
 
bool is_serif () const
 
bool is_fraktur () const
 

Public Attributes

char * name
 
uint32_t properties
 
int32_t universal_id
 
GenericVector< FontSpacingInfo * > * spacing_vec
 

Constructor & Destructor Documentation

◆ FontInfo()

tesseract::FontInfo::FontInfo ( )
inline

◆ ~FontInfo()

tesseract::FontInfo::~FontInfo ( )
default

Member Function Documentation

◆ add_spacing()

void tesseract::FontInfo::add_spacing ( UNICHAR_ID  uch_id,
FontSpacingInfo spacing_info 
)
inline

◆ DeSerialize()

bool tesseract::FontInfo::DeSerialize ( TFile fp)

◆ get_spacing() [1/2]

const FontSpacingInfo* tesseract::FontInfo::get_spacing ( UNICHAR_ID  uch_id) const
inline

◆ get_spacing() [2/2]

bool tesseract::FontInfo::get_spacing ( UNICHAR_ID  prev_uch_id,
UNICHAR_ID  uch_id,
int *  spacing 
) const
inline

◆ init_spacing()

void tesseract::FontInfo::init_spacing ( int  unicharset_size)
inline

◆ is_bold()

bool tesseract::FontInfo::is_bold ( ) const
inline

◆ is_fixed_pitch()

bool tesseract::FontInfo::is_fixed_pitch ( ) const
inline

◆ is_fraktur()

bool tesseract::FontInfo::is_fraktur ( ) const
inline

◆ is_italic()

bool tesseract::FontInfo::is_italic ( ) const
inline

◆ is_serif()

bool tesseract::FontInfo::is_serif ( ) const
inline

◆ Serialize()

bool tesseract::FontInfo::Serialize ( FILE *  fp) const

Member Data Documentation

◆ name

char* tesseract::FontInfo::name

◆ properties

uint32_t tesseract::FontInfo::properties

◆ spacing_vec

GenericVector<FontSpacingInfo *>* tesseract::FontInfo::spacing_vec

◆ universal_id

int32_t tesseract::FontInfo::universal_id

The documentation for this struct was generated from the following files: