Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Enumerations | Functions
fontstruct.h File Reference
#include "Xstuff.h"
#include "font.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _FontProp
struct  _FontResolution
struct  _ExtentInfo
struct  _CharInfo
struct  _FontInfo
struct  _Font
struct  _FontNames
struct  _FontPathElement
struct  _FPEFunctions

Defines

#define GLYPHPADOPTIONS   4 /* 1, 2, 4, or 8 */
#define FontGetPrivate(pFont, n)
#define FontSetPrivate(pFont, n, ptr)
#define GLYPHWIDTHPIXELS(pci)   ((pci)->metrics.rightSideBearing - (pci)->metrics.leftSideBearing)
#define GLYPHHEIGHTPIXELS(pci)   ((pci)->metrics.ascent + (pci)->metrics.descent)
#define GLYPHWIDTHBYTES(pci)   (((GLYPHWIDTHPIXELS(pci))+7) >> 3)
#define GLYPHWIDTHPADDED(bc)   (((bc)+7) & ~0x7)
#define BYTES_PER_ROW(bits, nbytes)
#define BYTES_FOR_GLYPH(ci, pad)
#define FONT_MAX_ASCENT(pi)
#define FONT_MAX_DESCENT(pi)
#define FONT_MAX_HEIGHT(pi)   (FONT_MAX_ASCENT(pi) + FONT_MAX_DESCENT(pi))
#define FONT_MIN_LEFT(pi)
#define FONT_MAX_RIGHT(pi)
#define FONT_MAX_WIDTH(pi)   (FONT_MAX_RIGHT(pi) - FONT_MIN_LEFT(pi))

Typedefs

typedef struct _FontProp FontPropRec
typedef struct _FontResolution FontResolutionRec
typedef struct _ExtentInfo ExtentInfoRec
typedef struct _CharInfo CharInfoRec
typedef struct _FontInfo FontInfoRec
typedef struct _Font FontRec
typedef struct _FontNames FontNamesRec
typedef struct _FontPathElement FontPathElementRec
typedef struct _FPEFunctions FPEFunctionsRec
typedef struct _FPEFunctions FPEFunctions

Enumerations

enum  FontEncoding {
  Linear8Bit, TwoD8Bit, Linear16Bit, TwoD16Bit,
  Linear8Bit, TwoD8Bit, Linear16Bit, TwoD16Bit
}

Functions

Bool _FontSetNewPrivate ()
int AllocateFontPrivateIndex ()
int InitFPETypes ()

Class Documentation

struct _FontProp

Definition at line 51 of file fontstruct.h.

Class Members
long name
long value
struct _FontResolution

Definition at line 56 of file fontstruct.h.

Class Members
unsigned short point_size
unsigned short x_resolution
unsigned short y_resolution
struct _ExtentInfo

Definition at line 62 of file fontstruct.h.

Class Members
DrawDirection drawDirection
int fontAscent
int fontDescent
int overallAscent
int overallDescent
int overallLeft
int overallRight
int overallWidth
struct _CharInfo

Definition at line 73 of file fontstruct.h.

Collaboration diagram for _CharInfo:
Class Members
char * bits
xCharInfo metrics
struct _FontInfo

Definition at line 83 of file fontstruct.h.

Collaboration diagram for _FontInfo:
Class Members
unsigned int allExist:1
unsigned int anamorphic:1
unsigned int cachable:1
unsigned int constantMetrics:1
unsigned int constantWidth:1
unsigned short defaultCh
unsigned int drawDirection:2
unsigned short firstCol
unsigned short firstRow
short fontAscent
short fontDescent
xCharInfo ink_maxbounds
xCharInfo ink_minbounds
unsigned int inkInside:1
unsigned int inkMetrics:1
char * isStringProp
unsigned short lastCol
unsigned short lastRow
xCharInfo maxbounds
short maxOverlap
xCharInfo minbounds
unsigned int noOverlap:1
int nprops
short pad
FontPropPtr props
unsigned int terminalFont:1
struct _FontNames

Definition at line 145 of file fontstruct.h.

Class Members
int * length
char ** names
int nnames
int size
struct _FontPathElement

Definition at line 153 of file fontstruct.h.

Class Members
char * name
int name_length
pointer private
int refcount
int type

Define Documentation

#define BYTES_FOR_GLYPH (   ci,
  pad 
)
Value:
(GLYPHHEIGHTPIXELS(ci) * \
                             BYTES_PER_ROW(GLYPHWIDTHPIXELS(ci),pad))

Definition at line 203 of file fontstruct.h.

#define BYTES_PER_ROW (   bits,
  nbytes 
)
Value:
((nbytes) == 1 ? (((bits)+7)>>3)   /* pad to 1 byte */ \
       :(nbytes) == 2 ? ((((bits)+15)>>3)&~1)    /* pad to 2 bytes */ \
       :(nbytes) == 4 ? ((((bits)+31)>>3)&~3)    /* pad to 4 bytes */ \
       :(nbytes) == 8 ? ((((bits)+63)>>3)&~7)    /* pad to 8 bytes */ \
       : 0)

Definition at line 196 of file fontstruct.h.

#define FONT_MAX_ASCENT (   pi)
Value:
((pi)->fontAscent > (pi)->ink_maxbounds.ascent ? \
                         (pi)->fontAscent : (pi)->ink_maxbounds.ascent)

Definition at line 210 of file fontstruct.h.

#define FONT_MAX_DESCENT (   pi)
Value:
((pi)->fontDescent > (pi)->ink_maxbounds.descent ? \
                         (pi)->fontDescent : (pi)->ink_maxbounds.descent)

Definition at line 212 of file fontstruct.h.

#define FONT_MAX_HEIGHT (   pi)    (FONT_MAX_ASCENT(pi) + FONT_MAX_DESCENT(pi))

Definition at line 214 of file fontstruct.h.

#define FONT_MAX_RIGHT (   pi)
Value:
((pi)->ink_maxbounds.rightSideBearing > \
                            (pi)->ink_maxbounds.characterWidth ? \
                         (pi)->ink_maxbounds.rightSideBearing : \
                            (pi)->ink_maxbounds.characterWidth)

Definition at line 217 of file fontstruct.h.

#define FONT_MAX_WIDTH (   pi)    (FONT_MAX_RIGHT(pi) - FONT_MIN_LEFT(pi))

Definition at line 221 of file fontstruct.h.

#define FONT_MIN_LEFT (   pi)
Value:
((pi)->ink_minbounds.leftSideBearing < 0 ? \
                         (pi)->ink_minbounds.leftSideBearing : 0)

Definition at line 215 of file fontstruct.h.

#define FontGetPrivate (   pFont,
  n 
)
Value:
((n) > (pFont)->maxPrivate ? (pointer) 0 : \
                          (pFont)->devPrivates[n])

Definition at line 138 of file fontstruct.h.

#define FontSetPrivate (   pFont,
  n,
  ptr 
)
Value:
((n) > (pFont)->maxPrivate ? \
                     _FontSetNewPrivate (pFont, n, ptr) : \
                     ((((pFont)->devPrivates[n] = (ptr)) != 0) || TRUE))

Definition at line 141 of file fontstruct.h.

#define GLYPHHEIGHTPIXELS (   pci)    ((pci)->metrics.ascent + (pci)->metrics.descent)

Definition at line 189 of file fontstruct.h.

#define GLYPHPADOPTIONS   4 /* 1, 2, 4, or 8 */

Definition at line 45 of file fontstruct.h.

#define GLYPHWIDTHBYTES (   pci)    (((GLYPHWIDTHPIXELS(pci))+7) >> 3)

Definition at line 192 of file fontstruct.h.

#define GLYPHWIDTHPADDED (   bc)    (((bc)+7) & ~0x7)

Definition at line 194 of file fontstruct.h.

#define GLYPHWIDTHPIXELS (   pci)    ((pci)->metrics.rightSideBearing - (pci)->metrics.leftSideBearing)

Definition at line 186 of file fontstruct.h.


Typedef Documentation

typedef struct _CharInfo CharInfoRec
typedef struct _ExtentInfo ExtentInfoRec
typedef struct _FontInfo FontInfoRec
typedef struct _FontNames FontNamesRec
typedef struct _FontProp FontPropRec
typedef struct _Font FontRec
typedef struct _FPEFunctions FPEFunctions

Enumeration Type Documentation

Enumerator:
Linear8Bit 
TwoD8Bit 
Linear16Bit 
TwoD16Bit 
Linear8Bit 
TwoD8Bit 
Linear16Bit 
TwoD16Bit 

Definition at line 47 of file fontstruct.h.


Function Documentation