#include <fontinfo.h>
List of all members.
Detailed Description
Definition at line 42 of file fontinfo.h.
Constructor & Destructor Documentation
tesseract::FontInfo::FontInfo |
( |
| ) |
|
|
inline |
tesseract::FontInfo::~FontInfo |
( |
| ) |
|
|
inline |
Member Function Documentation
Definition at line 53 of file fontinfo.h.
{
(*spacing_vec)[uch_id] = spacing_info;
}
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.
{
const FontSpacingInfo *prev_fsi = this->
get_spacing(prev_uch_id);
const FontSpacingInfo *fsi = this->
get_spacing(uch_id);
if (prev_fsi ==
NULL || fsi ==
NULL)
return false;
int i = 0;
for (; i < prev_fsi->kerned_unichar_ids.size(); ++i) {
if (prev_fsi->kerned_unichar_ids[i] == uch_id) break;
}
if (i < prev_fsi->kerned_unichar_ids.size()) {
*spacing = prev_fsi->kerned_x_gaps[i];
} else {
*spacing = prev_fsi->x_gap_after + fsi->x_gap_before;
}
return true;
}
void tesseract::FontInfo::init_spacing |
( |
int |
unicharset_size | ) |
|
|
inline |
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 |
Member Data Documentation
char* tesseract::FontInfo::name |
uinT32 tesseract::FontInfo::properties |
inT32 tesseract::FontInfo::universal_id |
The documentation for this struct was generated from the following file: