Leptonica  1.83.1
Image processing and image analysis suite
L_Bmf Struct Reference

#include <bmf.h>

Data Fields

struct Pixapixa
 
l_int32 size
 
char * directory
 
l_int32 baseline1
 
l_int32 baseline2
 
l_int32 baseline3
 
l_int32 lineheight
 
l_int32 kernwidth
 
l_int32 spacewidth
 
l_int32 vertlinesep
 
l_int32 * fonttab
 
l_int32 * baselinetab
 
l_int32 * widthtab
 

Detailed Description

Data structure to hold bitmap fonts and related data

Definition at line 46 of file bmf.h.

Field Documentation

◆ baseline1

l_int32 L_Bmf::baseline1

baseline offset for ascii 33 - 57

Definition at line 51 of file bmf.h.

Referenced by bmfCreate(), and bmfMakeAsciiTables().

◆ baseline2

l_int32 L_Bmf::baseline2

baseline offset for ascii 58 - 91

Definition at line 52 of file bmf.h.

Referenced by bmfCreate(), and bmfMakeAsciiTables().

◆ baseline3

l_int32 L_Bmf::baseline3

baseline offset for ascii 93 - 126

Definition at line 53 of file bmf.h.

Referenced by bmfCreate(), and bmfMakeAsciiTables().

◆ baselinetab

l_int32* L_Bmf::baselinetab

table mapping ascii --> baseline offset

Definition at line 59 of file bmf.h.

Referenced by bmfDestroy(), bmfGetBaseline(), and bmfMakeAsciiTables().

◆ directory

char* L_Bmf::directory

directory containing font bitmaps

Definition at line 50 of file bmf.h.

Referenced by bmfCreate(), and bmfDestroy().

◆ fonttab

l_int32* L_Bmf::fonttab

table mapping ascii --> font index

Definition at line 58 of file bmf.h.

Referenced by bmfDestroy(), bmfGetPix(), bmfGetWidth(), and bmfMakeAsciiTables().

◆ kernwidth

l_int32 L_Bmf::kernwidth

pixel dist between char bitmaps

Definition at line 55 of file bmf.h.

Referenced by bmfGetStringWidth().

◆ lineheight

l_int32 L_Bmf::lineheight

max height of line of chars

Definition at line 54 of file bmf.h.

Referenced by bmfGetLineStrings().

◆ pixa

struct Pixa* L_Bmf::pixa

pixa of bitmaps for 93 characters

Definition at line 48 of file bmf.h.

Referenced by bmfCreate(), bmfDestroy(), bmfGetPix(), and bmfGetWidth().

◆ size

l_int32 L_Bmf::size

font size (in points at 300 ppi)

Definition at line 49 of file bmf.h.

Referenced by bmfCreate().

◆ spacewidth

l_int32 L_Bmf::spacewidth

pixel dist between word bitmaps

Definition at line 56 of file bmf.h.

Referenced by bmfGetLineStrings().

◆ vertlinesep

l_int32 L_Bmf::vertlinesep

extra vertical space between text lines

Definition at line 57 of file bmf.h.

Referenced by bmfGetLineStrings().

◆ widthtab

l_int32* L_Bmf::widthtab

table mapping ascii --> char width

Definition at line 60 of file bmf.h.

Referenced by bmfDestroy(), and bmfMakeAsciiTables().


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