#include <fontinfo.h>
Definition at line 42 of file fontinfo.h.
| tesseract::FontInfo::FontInfo |
( |
| ) |
|
|
inline |
Definition at line 43 of file fontinfo.h.
GenericVector< FontSpacingInfo * > * spacing_vec
| tesseract::FontInfo::~FontInfo |
( |
| ) |
|
|
inline |
Definition at line 53 of file fontinfo.h.
55 (*spacing_vec)[uch_id] = spacing_info;
GenericVector< FontSpacingInfo * > * spacing_vec
Definition at line 59 of file fontinfo.h.
GenericVector< FontSpacingInfo * > * spacing_vec
| bool tesseract::FontInfo::get_spacing |
( |
UNICHAR_ID |
prev_uch_id, |
|
|
UNICHAR_ID |
uch_id, |
|
|
int * |
spacing |
|
) |
| const |
|
inline |
Definition at line 66 of file fontinfo.h.
69 const FontSpacingInfo *prev_fsi = this->
get_spacing(prev_uch_id);
70 const FontSpacingInfo *fsi = this->
get_spacing(uch_id);
71 if (prev_fsi ==
NULL || fsi ==
NULL)
return false;
73 for (; i < prev_fsi->kerned_unichar_ids.size(); ++i) {
74 if (prev_fsi->kerned_unichar_ids[i] == uch_id)
break;
76 if (i < prev_fsi->kerned_unichar_ids.size()) {
77 *spacing = prev_fsi->kerned_x_gaps[i];
79 *spacing = prev_fsi->x_gap_after + fsi->x_gap_before;
const FontSpacingInfo * get_spacing(UNICHAR_ID uch_id) const
| void tesseract::FontInfo::init_spacing |
( |
int |
unicharset_size | ) |
|
|
inline |
Definition at line 46 of file fontinfo.h.
GenericVector< FontSpacingInfo * > * spacing_vec
| bool tesseract::FontInfo::is_bold |
( |
| ) |
const |
|
inline |
| bool tesseract::FontInfo::is_fixed_pitch |
( |
| ) |
const |
|
inline |
| bool tesseract::FontInfo::is_fraktur |
( |
| ) |
const |
|
inline |
| bool tesseract::FontInfo::is_italic |
( |
| ) |
const |
|
inline |
| bool tesseract::FontInfo::is_serif |
( |
| ) |
const |
|
inline |
| char* tesseract::FontInfo::name |
| uinT32 tesseract::FontInfo::properties |
| inT32 tesseract::FontInfo::universal_id |
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/fontinfo.h