zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
t1afm.c File Reference
#include <ft2build.h>
#include "t1afm.h"
#include "t1errors.h"
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_POSTSCRIPT_AUX_H>

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_t1afm
 
#define KERN_INDEX(g1, g2)   ( ( (FT_ULong)(g1) << 16 ) | (g2) )
 

Functions

 compare_kern_pairs (const void *a, const void *b)
 
 T1_Done_Metrics (FT_Memory memory, AFM_FontInfo fi)
 
static FT_Int t1_get_index (const char *name, FT_Offset len, void *user_data)
 
 T1_Get_Kerning (AFM_FontInfo fi, FT_UInt glyph1, FT_UInt glyph2, FT_Vector *kerning)
 
 T1_Get_Track_Kerning (FT_Face face, FT_Fixed ptsize, FT_Int degree, FT_Fixed *kerning)
 
 T1_Read_Metrics (FT_Face t1_face, FT_Stream stream)
 
static FT_Error T1_Read_PFM (FT_Face t1_face, FT_Stream stream, AFM_FontInfo fi)
 

Macro Definition Documentation

#define FT_COMPONENT   trace_t1afm

Definition at line 33 of file t1afm.c.

#define KERN_INDEX (   g1,
  g2 
)    ( ( (FT_ULong)(g1) << 16 ) | (g2) )

Definition at line 80 of file t1afm.c.

Referenced by compare_kern_pairs(), and T1_Get_Kerning().

Function Documentation

compare_kern_pairs ( const void a,
const void b 
)

Definition at line 85 of file t1afm.c.

References AFM_KernPairRec_::index1, AFM_KernPairRec_::index2, and KERN_INDEX.

Referenced by T1_Read_PFM().

T1_Done_Metrics ( FT_Memory  memory,
AFM_FontInfo  fi 
)

Definition at line 37 of file t1afm.c.

References FT_FREE.

Referenced by T1_Face_Done(), and T1_Read_Metrics().

static FT_Int t1_get_index ( const char *  name,
FT_Offset  len,
void user_data 
)
static

Definition at line 52 of file t1afm.c.

References ft_strlen, ft_strncmp, T1_FontRec_::glyph_names, if(), and T1_FontRec_::num_glyphs.

Referenced by T1_Read_Metrics().

T1_Get_Kerning ( AFM_FontInfo  fi,
FT_UInt  glyph1,
FT_UInt  glyph2,
FT_Vector kerning 
)