Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Functions
pcf.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  PCF_TableRec_
 
struct  PCF_TocRec_
 
struct  PCF_ParsePropertyRec_
 
struct  PCF_PropertyRec_
 
struct  PCF_Compressed_MetricRec_
 
struct  PCF_MetricRec_
 
struct  PCF_AccelRec_
 
struct  PCF_EncodingRec_
 
struct  PCF_FaceRec_
 

Macros

#define LSBFirst   0
 
#define MSBFirst   1
 
#define PCF_FILE_VERSION
 
#define PCF_FORMAT_MASK   0xFFFFFF00UL
 
#define PCF_DEFAULT_FORMAT   0x00000000UL
 
#define PCF_INKBOUNDS   0x00000200UL
 
#define PCF_ACCEL_W_INKBOUNDS   0x00000100UL
 
#define PCF_COMPRESSED_METRICS   0x00000100UL
 
#define PCF_FORMAT_MATCH(a, b)   ( ( (a) & PCF_FORMAT_MASK ) == ( (b) & PCF_FORMAT_MASK ) )
 
#define PCF_GLYPH_PAD_MASK   ( 3 << 0 )
 
#define PCF_BYTE_MASK   ( 1 << 2 )
 
#define PCF_BIT_MASK   ( 1 << 3 )
 
#define PCF_SCAN_UNIT_MASK   ( 3 << 4 )
 
#define PCF_BYTE_ORDER(f)   ( ( (f) & PCF_BYTE_MASK ) ? MSBFirst : LSBFirst )
 
#define PCF_BIT_ORDER(f)   ( ( (f) & PCF_BIT_MASK ) ? MSBFirst : LSBFirst )
 
#define PCF_GLYPH_PAD_INDEX(f)   ( (f) & PCF_GLYPH_PAD_MASK )
 
#define PCF_GLYPH_PAD(f)   ( 1 << PCF_GLYPH_PAD_INDEX( f ) )
 
#define PCF_SCAN_UNIT_INDEX(f)   ( ( (f) & PCF_SCAN_UNIT_MASK ) >> 4 )
 
#define PCF_SCAN_UNIT(f)   ( 1 << PCF_SCAN_UNIT_INDEX( f ) )
 
#define PCF_FORMAT_BITS(f)
 
#define PCF_SIZE_TO_INDEX(s)   ( (s) == 4 ? 2 : (s) == 2 ? 1 : 0 )
 
#define PCF_INDEX_TO_SIZE(b)   ( 1 << b )
 
#define PCF_FORMAT(bit, byte, glyph, scan)
 
#define PCF_PROPERTIES   ( 1 << 0 )
 
#define PCF_ACCELERATORS   ( 1 << 1 )
 
#define PCF_METRICS   ( 1 << 2 )
 
#define PCF_BITMAPS   ( 1 << 3 )
 
#define PCF_INK_METRICS   ( 1 << 4 )
 
#define PCF_BDF_ENCODINGS   ( 1 << 5 )
 
#define PCF_SWIDTHS   ( 1 << 6 )
 
#define PCF_GLYPH_NAMES   ( 1 << 7 )
 
#define PCF_BDF_ACCELERATORS   ( 1 << 8 )
 
#define GLYPHPADOPTIONS   4 /* I'm not sure about this */
 

Typedefs

typedef FT_BEGIN_HEADER struct PCF_TableRec_ PCF_TableRec
 
typedef FT_BEGIN_HEADER struct PCF_TableRec_PCF_Table
 
typedef struct PCF_TocRec_ PCF_TocRec
 
typedef struct PCF_TocRec_PCF_Toc
 
typedef struct PCF_ParsePropertyRec_ PCF_ParsePropertyRec
 
typedef struct PCF_ParsePropertyRec_PCF_ParseProperty
 
typedef struct PCF_PropertyRec_ PCF_PropertyRec
 
typedef struct PCF_PropertyRec_PCF_Property
 
typedef struct PCF_Compressed_MetricRec_ PCF_Compressed_MetricRec
 
typedef struct PCF_Compressed_MetricRec_PCF_Compressed_Metric
 
typedef struct PCF_MetricRec_ PCF_MetricRec
 
typedef struct PCF_MetricRec_PCF_Metric
 
typedef struct PCF_AccelRec_ PCF_AccelRec
 
typedef struct PCF_AccelRec_PCF_Accel
 
typedef struct PCF_EncodingRec_ PCF_EncodingRec
 
typedef struct PCF_EncodingRec_PCF_Encoding
 
typedef struct PCF_FaceRec_ PCF_FaceRec
 
typedef struct PCF_FaceRec_PCF_Face
 

Functions

 pcf_load_font (FT_Stream, PCF_Face)
 

Macro Definition Documentation

◆ GLYPHPADOPTIONS

#define GLYPHPADOPTIONS   4 /* I'm not sure about this */

Definition at line 226 of file pcf.h.

◆ LSBFirst

#define LSBFirst   0

Definition at line 168 of file pcf.h.

◆ MSBFirst

#define MSBFirst   1

Definition at line 169 of file pcf.h.

Referenced by PCF_Glyph_Load().

◆ PCF_ACCEL_W_INKBOUNDS

#define PCF_ACCEL_W_INKBOUNDS   0x00000100UL

Definition at line 178 of file pcf.h.

◆ PCF_ACCELERATORS

#define PCF_ACCELERATORS   ( 1 << 1 )

Definition at line 217 of file pcf.h.

◆ PCF_BDF_ACCELERATORS

#define PCF_BDF_ACCELERATORS   ( 1 << 8 )

Definition at line 224 of file pcf.h.

◆ PCF_BDF_ENCODINGS

#define PCF_BDF_ENCODINGS   ( 1 << 5 )

Definition at line 221 of file pcf.h.

◆ PCF_BIT_MASK

#define PCF_BIT_MASK   ( 1 << 3 )

Definition at line 186 of file pcf.h.

◆ PCF_BIT_ORDER

#define PCF_BIT_ORDER (   f)    ( ( (f) & PCF_BIT_MASK ) ? MSBFirst : LSBFirst )

Definition at line 191 of file pcf.h.

Referenced by PCF_Glyph_Load().

◆ PCF_BITMAPS

#define PCF_BITMAPS   ( 1 << 3 )

Definition at line 219 of file pcf.h.

◆ PCF_BYTE_MASK

#define PCF_BYTE_MASK   ( 1 << 2 )

Definition at line 185 of file pcf.h.

◆ PCF_BYTE_ORDER

#define PCF_BYTE_ORDER (   f)    ( ( (f) & PCF_BYTE_MASK ) ? MSBFirst : LSBFirst )

Definition at line 189 of file pcf.h.

Referenced by PCF_Glyph_Load().

◆ PCF_COMPRESSED_METRICS

#define PCF_COMPRESSED_METRICS   0x00000100UL

Definition at line 179 of file pcf.h.

◆ PCF_DEFAULT_FORMAT

#define PCF_DEFAULT_FORMAT   0x00000000UL

Definition at line 176 of file pcf.h.

◆ PCF_FILE_VERSION

#define PCF_FILE_VERSION
Value:
( ( 'p' << 24 ) | \
( 'c' << 16 ) | \
( 'f' << 8 ) | 1 )

Definition at line 171 of file pcf.h.

◆ PCF_FORMAT

#define PCF_FORMAT (   bit,
  byte,
  glyph,
  scan 
)
Value:
( ( PCF_SIZE_TO_INDEX( scan ) << 4 ) | \
( ( (bit) == MSBFirst ? 1 : 0 ) << 3 ) | \
( ( (byte) == MSBFirst ? 1 : 0 ) << 2 ) | \
( PCF_SIZE_TO_INDEX( glyph ) << 0 ) )
#define PCF_SIZE_TO_INDEX(s)
Definition: pcf.h:207
#define MSBFirst
Definition: pcf.h:169
unsigned char byte
Definition: tif_acorn.c:69

Definition at line 210 of file pcf.h.

◆ PCF_FORMAT_BITS

#define PCF_FORMAT_BITS (   f)
Value:
( (f) & ( PCF_GLYPH_PAD_MASK | \
#define PCF_GLYPH_PAD_MASK
Definition: pcf.h:184
#define PCF_BYTE_MASK
Definition: pcf.h:185
#define PCF_BIT_MASK
Definition: pcf.h:186
#define PCF_SCAN_UNIT_MASK
Definition: pcf.h:187
GLfloat f

Definition at line 201 of file pcf.h.

◆ PCF_FORMAT_MASK

#define PCF_FORMAT_MASK   0xFFFFFF00UL

Definition at line 174 of file pcf.h.

◆ PCF_FORMAT_MATCH

#define PCF_FORMAT_MATCH (   a,
  b 
)    ( ( (a) & PCF_FORMAT_MASK ) == ( (b) & PCF_FORMAT_MASK ) )

Definition at line 181 of file pcf.h.

◆ PCF_GLYPH_NAMES

#define PCF_GLYPH_NAMES   ( 1 << 7 )

Definition at line 223 of file pcf.h.

◆ PCF_GLYPH_PAD

#define PCF_GLYPH_PAD (   f)    ( 1 << PCF_GLYPH_PAD_INDEX( f ) )

Definition at line 195 of file pcf.h.

Referenced by PCF_Glyph_Load().

◆ PCF_GLYPH_PAD_INDEX

#define PCF_GLYPH_PAD_INDEX (   f)    ( (f) & PCF_GLYPH_PAD_MASK )

Definition at line 193 of file pcf.h.

◆ PCF_GLYPH_PAD_MASK

#define PCF_GLYPH_PAD_MASK   ( 3 << 0 )

Definition at line 184 of file pcf.h.

◆ PCF_INDEX_TO_SIZE

#define PCF_INDEX_TO_SIZE (   b)    ( 1 << b )

Definition at line 208 of file pcf.h.

◆ PCF_INK_METRICS

#define PCF_INK_METRICS   ( 1 << 4 )

Definition at line 220 of file pcf.h.

◆ PCF_INKBOUNDS

#define PCF_INKBOUNDS   0x00000200UL

Definition at line 177 of file pcf.h.

◆ PCF_METRICS

#define PCF_METRICS   ( 1 << 2 )

Definition at line 218 of file pcf.h.

◆ PCF_PROPERTIES

#define PCF_PROPERTIES   ( 1 << 0 )

Definition at line 216 of file pcf.h.

◆ PCF_SCAN_UNIT

#define PCF_SCAN_UNIT (   f)    ( 1 << PCF_SCAN_UNIT_INDEX( f ) )

Definition at line 199 of file pcf.h.

Referenced by PCF_Glyph_Load().

◆ PCF_SCAN_UNIT_INDEX

#define PCF_SCAN_UNIT_INDEX (   f)    ( ( (f) & PCF_SCAN_UNIT_MASK ) >> 4 )

Definition at line 197 of file pcf.h.

◆ PCF_SCAN_UNIT_MASK

#define PCF_SCAN_UNIT_MASK   ( 3 << 4 )

Definition at line 187 of file pcf.h.

◆ PCF_SIZE_TO_INDEX

#define PCF_SIZE_TO_INDEX (   s)    ( (s) == 4 ? 2 : (s) == 2 ? 1 : 0 )

Definition at line 207 of file pcf.h.

◆ PCF_SWIDTHS

#define PCF_SWIDTHS   ( 1 << 6 )

Definition at line 222 of file pcf.h.

Typedef Documentation

◆ PCF_Accel

typedef struct PCF_AccelRec_ * PCF_Accel

◆ PCF_AccelRec

typedef struct PCF_AccelRec_ PCF_AccelRec

◆ PCF_Compressed_Metric

◆ PCF_Compressed_MetricRec

◆ PCF_Encoding

typedef struct PCF_EncodingRec_ * PCF_Encoding

◆ PCF_EncodingRec

◆ PCF_Face

typedef struct PCF_FaceRec_ * PCF_Face

◆ PCF_FaceRec

typedef struct PCF_FaceRec_ PCF_FaceRec

◆ PCF_Metric

typedef struct PCF_MetricRec_ * PCF_Metric

◆ PCF_MetricRec

typedef struct PCF_MetricRec_ PCF_MetricRec

◆ PCF_ParseProperty

◆ PCF_ParsePropertyRec

◆ PCF_Property

typedef struct PCF_PropertyRec_ * PCF_Property

◆ PCF_PropertyRec

◆ PCF_Table

◆ PCF_TableRec

◆ PCF_Toc

typedef struct PCF_TocRec_ * PCF_Toc

◆ PCF_TocRec

typedef struct PCF_TocRec_ PCF_TocRec

Function Documentation

◆ pcf_load_font()

pcf_load_font ( FT_Stream  ,
PCF_Face   
)

Definition at line 1096 of file pcfread.c.

References error, FT_Bool, FT_Err_Ok, and FT_FACE.

Referenced by PCF_Face_Init().