Leptonica 1.85.0
Image processing and image analysis suite
Loading...
Searching...
No Matches
bmfdata.h File Reference

Go to the source code of this file.

Macros

#define NUM_FONTS   9
 

Variables

static const char * inputfonts []
 
static const char * outputfonts []
 
static const l_int32 baselines [NUM_FONTS][3]
 
static const char fontdata_4 []
 
static const char fontdata_6 []
 
static const char fontdata_8 []
 
static const char fontdata_10 []
 
static const char fontdata_12 []
 
static const char fontdata_14 []
 
static const char fontdata_16 []
 
static const char fontdata_18 []
 
static const char fontdata_20 []
 

Detailed Description

 This file contains data for constructing the bitmap fonts.

 The fontdata string holds all 9 sets of bitmap fonts in a base64
 encoding of a pixacomp representation of the tiff compressed images.
 It was generated by prog/genfonts and pasted in.  This allows
 the use of the bitmap fonts for image labelling without accessing
 stored versions of either the tiff images for each set, or the pixa
 of the 95 printable character images that was derived from the tiff image.

 In use, to get the bmf for a specific font size, from the encoded
 string in this file, call
     bmfCreate(NULL, fontsize);

Definition in file bmfdata.h.

Macro Definition Documentation

◆ NUM_FONTS

#define NUM_FONTS   9

Definition at line 49 of file bmfdata.h.

Variable Documentation

◆ baselines

const l_int32 baselines[NUM_FONTS][3]
static
Initial value:
= {{11, 12, 12}, {18, 18, 18},
{24, 24, 24}, {30, 30, 30},
{36, 36, 36}, {42, 42, 42},
{48, 48, 48}, {54, 54, 54},
{60, 60, 60}}

Definition at line 60 of file bmfdata.h.

◆ fontdata_10

const char fontdata_10[]
static

Definition at line 181 of file bmfdata.h.

◆ fontdata_12

const char fontdata_12[]
static

Definition at line 236 of file bmfdata.h.

◆ fontdata_14

const char fontdata_14[]
static

Definition at line 300 of file bmfdata.h.

◆ fontdata_16

const char fontdata_16[]
static

Definition at line 371 of file bmfdata.h.

◆ fontdata_18

const char fontdata_18[]
static

Definition at line 450 of file bmfdata.h.

◆ fontdata_20

const char fontdata_20[]
static

Definition at line 538 of file bmfdata.h.

◆ fontdata_4

const char fontdata_4[]
static
Initial value:
=
"SUkqACYFAAAmoHICP///////////////////////kFcchgc45Bgc45A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iIiIiIr1SMwyQbOkEiGQCvd4i"
"I//////////////////////////////////////////////////////+QVo7IEDkGwchpOQV"
"nIa0ENKCGhyC7kHchocgZschnHIMPtKk7oIP7ulv6f9Yj5DIDaH/3gjjr///+rI4aiIEXngg"
"RZBfCBEWQXsofKggu5DD5Y+Qw5UHghiCoIEYQw5VkCMIO5TkF7shhzOQxZ4IJZxy3IO5nIJZ"
"4IP//1iiPOGd0R+iPQgR3TQIIXZ3/S7BBnezui87MOiPbKHRHqftNNXvTTUjy/9JkcFjTpOk"
"9NsKmFTu+Etppw06VtMjhhO0OLCd3S+rSdIUvyDD+Iha8fQ//+K//3/+D/vbQRT7d9LsjhgI"
"7nH8Ivf/lw0bS/4RT////7f//pfq+lhr6/v/Yf/t//3/+D/sO2NNhpfiP66Xat8L/2//3S0r"
"XIMD/rvUEd9Isf/4Mp5wCDgYBlOzgO0fB3aem2mmnYTtipwCAZQ6DnAXDgynapwk20h/+IiI"
"iIy9ERxEREREZHDLiIiIiIjjj6kNWdP//qP/pMjhq8bSXwojsGkEwmliIiP/////////////"
"/////////////////////////wAQAQ4AAAEDAAEAAACSAwAAAQEDAAEAAAA2AgAAAgEDAAEA"
"AAABAAAAAwEDAAEAAAAEAAAABgEDAAEAAAABAAAAEQEEAAEAAAAIAAAAEgEDAAEAAAABAAAA"
"FQEDAAEAAAABAAAAFgEDAAEAAAA2AgAAFwEEAAEAAAAeBQAAGgEFAAEAAADUBQAAGwEFAAEA"
"AADcBQAAHAEDAAEAAAABAAAAKAEDAAEAAAACAAAAAAAAAAAAwBIAAAQAAADAEgAABAA="

Definition at line 66 of file bmfdata.h.

◆ fontdata_6

const char fontdata_6[]
static

Definition at line 96 of file bmfdata.h.

◆ fontdata_8

const char fontdata_8[]
static

Definition at line 134 of file bmfdata.h.

◆ inputfonts

const char* inputfonts[]
static
Initial value:
= {"chars-4.tif", "chars-6.tif",
"chars-8.tif", "chars-10.tif",
"chars-12.tif", "chars-14.tif",
"chars-16.tif", "chars-18.tif",
"chars-20.tif"}

Definition at line 50 of file bmfdata.h.

◆ outputfonts

const char* outputfonts[]
static
Initial value:
= {"chars-4.pa", "chars-6.pa",
"chars-8.pa", "chars-10.pa",
"chars-12.pa", "chars-14.pa",
"chars-16.pa", "chars-18.pa",
"chars-20.pa"}

Definition at line 55 of file bmfdata.h.