20#include FT_INTERNAL_DEBUG_H
21#include FT_INTERNAL_POSTSCRIPT_AUX_H
23#ifndef T1_CONFIG_OPTION_NO_AFM
65#define AFM_IS_NEWLINE( ch ) ( (ch) == '\r' || (ch) == '\n' )
67#define AFM_IS_EOF( ch ) ( (ch) == EOF || (ch) == '\x1a' )
68#define AFM_IS_SPACE( ch ) ( (ch) == ' ' || (ch) == '\t' )
71#define AFM_IS_SEP( ch ) ( (ch) == ';' )
74 ( ( (stream)->cursor < (stream)->limit ) ? *(stream)->cursor++ \
77#define AFM_STREAM_KEY_BEGIN( stream ) \
78 (char*)( (stream)->cursor - 1 )
80#define AFM_STREAM_KEY_LEN( stream, key ) \
81 (FT_Offset)( (char*)(stream)->cursor - key - 1 )
83#define AFM_STATUS_EOC( stream ) \
84 ( (stream)->status >= AFM_STREAM_STATUS_EOC )
86#define AFM_STATUS_EOL( stream ) \
87 ( (stream)->status >= AFM_STREAM_STATUS_EOL )
89#define AFM_STATUS_EOF( stream ) \
90 ( (stream)->status >= AFM_STREAM_STATUS_EOF )
293 "BlendDesignPositions",
345 "UnderlineThickness",
384 for (
i = 0;
i <
n;
i++ )
639 tk->
degree = shared_vals[0].
u.i;
667#define KERN_INDEX( g1, g2 ) ( ( (FT_ULong)g1 << 16 ) | g2 )
682 if ( index1 > index2 )
684 else if ( index1 < index2 )
751 kp->
index1 = shared_vals[0].
u.u;
752 kp->
index2 = shared_vals[1].
u.u;
756 kp->
y = shared_vals[2].
u.i;
760 kp->
x = shared_vals[2].
u.i;
762 ? shared_vals[3].
u.i : 0;
873 return FT_THROW( Invalid_Argument );
878 return FT_THROW( Unknown_File_Format );
891 if ( metrics_sets != 0 && metrics_sets != 2 )
981 typedef int _afm_parse_dummy;
#define AFM_STREAM_KEY_BEGIN(stream)
afm_parser_init(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
#define AFM_STREAM_KEY_LEN(stream, key)
#define AFM_STATUS_EOC(stream)
enum AFM_Token_ AFM_Token
#define AFM_STATUS_EOF(stream)
static FT_Error afm_parse_kern_pairs(AFM_Parser parser)
static FT_Error afm_parse_track_kern(AFM_Parser parser)
static FT_Error afm_parser_skip_section(AFM_Parser parser, FT_Int n, AFM_Token end_section)
afm_compare_kern_pairs(const void *a, const void *b)
#define AFM_STATUS_EOL(stream)
static const char *const afm_key_table[N_AFM_TOKENS]
static char * afm_stream_read_one(AFM_Stream stream)
static FT_Error afm_parse_kern_data(AFM_Parser parser)
afm_parser_read_vals(AFM_Parser parser, AFM_Value vals, FT_Int n)
static int afm_stream_skip_spaces(AFM_Stream stream)
static FT_Error afm_parser_read_int(AFM_Parser parser, FT_Int *aint)
@ AFM_STREAM_STATUS_NORMAL
#define AFM_IS_NEWLINE(ch)
struct AFM_StreamRec_ AFM_StreamRec
afm_parser_parse(AFM_Parser parser)
@ AFM_TOKEN_UNDERLINEPOSITION
@ AFM_TOKEN_ENCODINGSCHEME
@ AFM_TOKEN_STARTTRACKKERN
@ AFM_TOKEN_STARTKERNDATA
@ AFM_TOKEN_ENDCOMPOSITES
@ AFM_TOKEN_BLENDAXISTYPES
@ AFM_TOKEN_STARTFONTMETRICS
@ AFM_TOKEN_STARTCOMPOSITES
@ AFM_TOKEN_UNDERLINETHICKNESS
@ AFM_TOKEN_STARTKERNPAIRS0
@ AFM_TOKEN_MAPPINGSCHEME
@ AFM_TOKEN_STARTCHARMETRICS
@ AFM_TOKEN_STARTKERNPAIRS
@ AFM_TOKEN_ENDCHARMETRICS
@ AFM_TOKEN_BLENDDESIGNPOSITIONS
@ AFM_TOKEN_STARTKERNPAIRS1
@ AFM_TOKEN_ENDFONTMETRICS
@ AFM_TOKEN_BLENDDESIGNMAP
@ AFM_TOKEN_STARTDIRECTION
static char * afm_stream_read_string(AFM_Stream stream)
afm_parser_next_key(AFM_Parser parser, FT_Bool line, FT_Offset *len)
static AFM_Token afm_tokenize(const char *key, FT_Offset len)
afm_parser_done(AFM_Parser parser)
#define KERN_INDEX(g1, g2)
#define AFM_MAX_ARGUMENTS
#define FT_CALLBACK_DEF(x)
#define FT_QALLOC(ptr, size)
#define FT_QNEW_ARRAY(ptr, count)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
static char memory[1024 *256]
PS_Conv_ToInt(FT_Byte **cursor, FT_Byte *limit)
PS_Conv_ToFixed(FT_Byte **cursor, FT_Byte *limit, FT_Long power_ten)
struct AFM_KernPairRec_ * AFM_KernPair
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList