#include <ft2build.h>
Go to the source code of this file.
◆ AFM_MAX_ARGUMENTS
◆ AFM_Value
◆ AFM_ValueRec
◆ AFM_ValueType_
Enumerator |
---|
AFM_VALUE_TYPE_STRING | |
AFM_VALUE_TYPE_NAME | |
AFM_VALUE_TYPE_FIXED | |
AFM_VALUE_TYPE_INTEGER | |
AFM_VALUE_TYPE_BOOL | |
AFM_VALUE_TYPE_INDEX | |
Definition at line 45 of file afmparse.h.
◆ afm_parser_done()
Definition at line 558 of file afmparse.c.
559 {
561
562
564 }
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
static char memory[1024 *256]
◆ afm_parser_init()
Definition at line 530 of file afmparse.c.
534 {
537
538
541
544
545
547
552
554 }
◆ afm_parser_next_key()
Definition at line 446 of file afmparse.c.
449 {
452
453
455 {
456 while ( 1 )
457 {
458
461
464
465
469 continue;
470
471 break;
472 }
473 }
474 else
475 {
476 while ( 1 )
477 {
478
481
484
485
489 continue;
490
491 break;
492 }
493 }
494
497 : 0;
498
500 }
#define AFM_STREAM_KEY_LEN(stream, key)
#define AFM_STATUS_EOC(stream)
#define AFM_STATUS_EOF(stream)
#define AFM_STATUS_EOL(stream)
static char * afm_stream_read_one(AFM_Stream stream)
@ AFM_STREAM_STATUS_NORMAL
static char * afm_stream_read_string(AFM_Stream stream)
Referenced by afm_parse_kern_data(), afm_parse_kern_pairs(), afm_parse_track_kern(), afm_parser_parse(), and afm_parser_skip_section().
◆ afm_parser_parse()
Definition at line 862 of file afmparse.c.
863 {
870
871
872 if ( !fi )
873 return FT_THROW( Invalid_Argument );
874
878 return FT_THROW( Unknown_File_Format );
879
881 {
883
884
886 {
890
891 if ( metrics_sets != 0 && metrics_sets != 2 )
892 {
894
896 }
897 break;
898
903
905 break;
906
914
919 break;
920
925
927 break;
928
933
935 break;
936
938 {
940
941
944
949 }
950 break;
951
956
957
960
961 default:
962 break;
963 }
964 }
965
969
972
974
976 }
static FT_Error afm_parser_skip_section(AFM_Parser parser, FT_Int n, AFM_Token end_section)
static FT_Error afm_parse_kern_data(AFM_Parser parser)
afm_parser_read_vals(AFM_Parser parser, AFM_Value vals, FT_Int n)
static FT_Error afm_parser_read_int(AFM_Parser parser, FT_Int *aint)
@ AFM_TOKEN_STARTKERNDATA
@ AFM_TOKEN_STARTCHARMETRICS
@ AFM_TOKEN_ENDCHARMETRICS
@ AFM_TOKEN_ENDFONTMETRICS
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_read_vals()
Definition at line 372 of file afmparse.c.
375 {
379
380
382 return 0;
383
384 for (
i = 0;
i <
n;
i++ )
385 {
388
389
392 else
394
396 break;
397
399
401 {
404 {
407
408
410 {
413 }
414 }
415 break;
416
420 break;
421
425 break;
426
430 break;
431
435 else
437 break;
438 }
439 }
440
442 }
#define AFM_MAX_ARGUMENTS
#define FT_QALLOC(ptr, size)
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
PS_Conv_ToInt(FT_Byte **cursor, FT_Byte *limit)
PS_Conv_ToFixed(FT_Byte **cursor, FT_Byte *limit, FT_Long power_ten)
Referenced by afm_parse_kern_pairs(), afm_parse_track_kern(), afm_parser_parse(), and afm_parser_read_int().