Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Go to the source code of this file.
Macros | |
#define | EOF -1 |
#define | AFM_IS_NEWLINE(ch) ( (ch) == '\r' || (ch) == '\n' ) |
#define | AFM_IS_EOF(ch) ( (ch) == EOF || (ch) == '\x1a' ) |
#define | AFM_IS_SPACE(ch) ( (ch) == ' ' || (ch) == '\t' ) |
#define | AFM_IS_SEP(ch) ( (ch) == ';' ) |
#define | AFM_GETC() |
#define | AFM_STREAM_KEY_BEGIN(stream) (char*)( (stream)->cursor - 1 ) |
#define | AFM_STREAM_KEY_LEN(stream, key) ( (char*)(stream)->cursor - key - 1 ) |
#define | AFM_STATUS_EOC(stream) ( (stream)->status >= AFM_STREAM_STATUS_EOC ) |
#define | AFM_STATUS_EOL(stream) ( (stream)->status >= AFM_STREAM_STATUS_EOL ) |
#define | AFM_STATUS_EOF(stream) ( (stream)->status >= AFM_STREAM_STATUS_EOF ) |
#define | KERN_INDEX(g1, g2) ( ( (FT_ULong)g1 << 16 ) | g2 ) |
Typedefs | |
typedef struct AFM_StreamRec_ | AFM_StreamRec |
typedef enum AFM_Token_ | AFM_Token |
Functions | |
afm_parser_read_vals (AFM_Parser parser, AFM_Value vals, FT_UInt n) | |
afm_parser_next_key (AFM_Parser parser, FT_Bool line, FT_Offset *len) | |
afm_parser_init (AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit) | |
afm_parser_done (AFM_Parser parser) | |
afm_parser_read_int (AFM_Parser parser, FT_Int *aint) | |
afm_compare_kern_pairs (const void *a, const void *b) | |
afm_parser_parse (AFM_Parser parser) | |
#define AFM_GETC | ( | ) |
Definition at line 71 of file afmparse.c.
#define AFM_IS_EOF | ( | ch | ) | ( (ch) == EOF || (ch) == '\x1a' ) |
Definition at line 65 of file afmparse.c.
Definition at line 63 of file afmparse.c.
#define AFM_IS_SEP | ( | ch | ) | ( (ch) == ';' ) |
Definition at line 69 of file afmparse.c.
#define AFM_IS_SPACE | ( | ch | ) | ( (ch) == ' ' || (ch) == '\t' ) |
Definition at line 66 of file afmparse.c.
#define AFM_STATUS_EOC | ( | stream | ) | ( (stream)->status >= AFM_STREAM_STATUS_EOC ) |
Definition at line 81 of file afmparse.c.
#define AFM_STATUS_EOF | ( | stream | ) | ( (stream)->status >= AFM_STREAM_STATUS_EOF ) |
Definition at line 87 of file afmparse.c.
#define AFM_STATUS_EOL | ( | stream | ) | ( (stream)->status >= AFM_STREAM_STATUS_EOL ) |
Definition at line 84 of file afmparse.c.
Referenced by afm_parser_next_key().
Definition at line 75 of file afmparse.c.
Definition at line 78 of file afmparse.c.
#define EOF -1 |
Definition at line 58 of file afmparse.c.
Referenced by blast(), get_token(), gzfilebuf::is_open(), gzfilebuf::overflow(), pbm_getc(), preload_image(), read_byte(), read_gif_map(), read_pbm_integer(), read_ppm_map(), read_quant_tables(), read_scan_integer(), read_scan_script(), read_text_integer(), gzfilebuf::seekoff(), gzfilebuf::sync(), text_getc(), and gzfilebuf::underflow().
#define KERN_INDEX | ( | g1, | |
g2 | |||
) | ( ( (FT_ULong)g1 << 16 ) | g2 ) |
Definition at line 657 of file afmparse.c.
Referenced by afm_compare_kern_pairs().
typedef struct AFM_StreamRec_ AFM_StreamRec |
typedef enum AFM_Token_ AFM_Token |
anonymous enum |
Enumerator | |
---|---|
AFM_STREAM_STATUS_NORMAL | |
AFM_STREAM_STATUS_EOC | |
AFM_STREAM_STATUS_EOL | |
AFM_STREAM_STATUS_EOF |
Definition at line 37 of file afmparse.c.
enum AFM_Token_ |
Definition at line 199 of file afmparse.c.
Definition at line 662 of file afmparse.c.
References AFM_KernPairRec_::index1, AFM_KernPairRec_::index2, and KERN_INDEX.
afm_parser_done | ( | AFM_Parser | parser | ) |
Definition at line 554 of file afmparse.c.
References FT_FREE, and FT_LOCAL_DEF.
afm_parser_init | ( | AFM_Parser | parser, |
FT_Memory | memory, | ||
FT_Byte * | base, | ||
FT_Byte * | limit | ||
) |
Definition at line 526 of file afmparse.c.
References AFM_STREAM_STATUS_EOL, error, FT_Err_Ok, FT_LOCAL, FT_NEW, and NULL.
afm_parser_next_key | ( | AFM_Parser | parser, |
FT_Bool | line, | ||
FT_Offset * | len | ||
) |
Definition at line 442 of file afmparse.c.
References AFM_STATUS_EOL.
Referenced by afm_parser_parse().
afm_parser_parse | ( | AFM_Parser | parser | ) |
Definition at line 845 of file afmparse.c.
References afm_parser_next_key(), error, AFM_ParserRec_::FontInfo, FT_ERR, ft_strncmp, FT_THROW(), and AFM_ParserRec_::memory.
afm_parser_read_int | ( | AFM_Parser | parser, |
FT_Int * | aint | ||
) |
Definition at line 564 of file afmparse.c.
References afm_parser_read_vals(), AFM_VALUE_TYPE_INTEGER, FT_Err_Ok, FT_THROW(), AFM_ValueRec_::i, AFM_ValueRec_::type, and AFM_ValueRec_::u.
afm_parser_read_vals | ( | AFM_Parser | parser, |
AFM_Value | vals, | ||
FT_UInt | n | ||
) |
Definition at line 368 of file afmparse.c.
References AFM_MAX_ARGUMENTS, AFM_VALUE_TYPE_STRING, i, and AFM_ValueRec_::type.
Referenced by afm_parser_read_int().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:55.
© Copyright Michele Bosi. All rights reserved.