libTERE
A portable library for reassembling complex formatted text from text fragments.
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Data Fields
TCHUNK_SPECS Struct Reference

Information for a single text object. More...

#include <text_reassemble.h>

Data Fields

uint8_t * string
double ori
double fs
double x
double y
double boff
double vadvance
uint32_t color
int taln
int ldir
int italics
int weight
int condensed
int co
int rt_tidx
int fi_idx

Detailed Description

Information for a single text object.


Field Documentation

double TCHUNK_SPECS::boff

Y LL corner - boff finds baseline

int TCHUNK_SPECS::co

condensed override, if set Font name included narrow

uint32_t TCHUNK_SPECS::color

RGBA

int TCHUNK_SPECS::condensed

condensed, as in FontConfig

int TCHUNK_SPECS::fi_idx

index of the font it uses

double TCHUNK_SPECS::fs

font size of text

int TCHUNK_SPECS::italics

italics, as in FontConfig

int TCHUNK_SPECS::ldir

language diretion LDIR_*

double TCHUNK_SPECS::ori

Orientation, angle of characters with respect to baseline in degrees

int TCHUNK_SPECS::rt_tidx

index of rectangle that contains it

uint8_t* TCHUNK_SPECS::string

UTF-8 text

int TCHUNK_SPECS::taln

text alignment with respect to x,y

double TCHUNK_SPECS::vadvance

Line spacing typically 1.25 or 1.2, only set on the first text element in a complex

int TCHUNK_SPECS::weight

weight, as in FontConfig

double TCHUNK_SPECS::x

x coordinate, relative to TR_INFO x,y, in points

double TCHUNK_SPECS::y

y coordinate, relative to TR_INFO x,y, in points


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