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 44 of file afmparse.h.
◆ afm_parser_done()
Definition at line 557 of file afmparse.c.
558 {
560
561
563 }
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
static char memory[1024 *256]
◆ afm_parser_init()
Definition at line 529 of file afmparse.c.
533 {
536
537
540
543
544
546
551
553 }
◆ afm_parser_next_key()
Definition at line 445 of file afmparse.c.
448 {
451
452
454 {
455 while ( 1 )
456 {
457
460
463
464
468 continue;
469
470 break;
471 }
472 }
473 else
474 {
475 while ( 1 )
476 {
477
480
483
484
488 continue;
489
490 break;
491 }
492 }
493
496 : 0;
497
499 }
#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)
static char * afm_stream_read_string(AFM_Stream stream)
@ AFM_STREAM_STATUS_NORMAL
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 861 of file afmparse.c.
862 {
869
870
871 if ( !fi )
872 return FT_THROW( Invalid_Argument );
873
877 return FT_THROW( Unknown_File_Format );
878
880 {
882
883
885 {
889
890 if ( metrics_sets != 0 && metrics_sets != 2 )
891 {
893
895 }
896 break;
897
902
904 break;
905
913
918 break;
919
924
926 break;
927
932
934 break;
935
937 {
939
940
943
948 }
949 break;
950
955
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 371 of file afmparse.c.
374 {
378
379
381 return 0;
382
383 for (
i = 0;
i <
n;
i++ )
384 {
387
388
391 else
393
395 break;
396
398
400 {
403 {
406
407
409 {
412 }
413 }
414 break;
415
419 break;
420
424 break;
425
429 break;
430
434 else
436 break;
437 }
438 }
439
441 }
#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().