#include <ft2build.h>#include "t1afm.h"#include "t1errors.h"Go to the source code of this file.
| Defines | |
| #define | FT_COMPONENT trace_t1afm | 
| #define | KERN_INDEX(g1, g2) ( ( (FT_ULong)(g1) << 16 ) | (g2) ) | 
| Functions | |
| T1_Done_Metrics (FT_Memory memory, AFM_FontInfo fi) | |
| static FT_Int | t1_get_index (const char *name, FT_Offset len, void *user_data) | 
| compare_kern_pairs (const void *a, const void *b) | |
| static FT_Error | T1_Read_PFM (FT_Face t1_face, FT_Stream stream, AFM_FontInfo fi) | 
| T1_Read_Metrics (FT_Face t1_face, FT_Stream stream) | |
| 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) | |
| #define KERN_INDEX | ( | g1, | |||
| g2 | ) | ( ( (FT_ULong)(g1) << 16 ) | (g2) ) | 
| 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.
| 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().
Definition at line 52 of file t1afm.c.
References ft_strlen, ft_strncmp, T1_FontRec_::glyph_names, if(), n, 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 | |||
| ) | 
Definition at line 318 of file t1afm.c.
References AFM_KernPairRec_::index1, AFM_KernPairRec_::index2, KERN_INDEX, max, min, AFM_KernPairRec_::x, and AFM_KernPairRec_::y.
Referenced by Get_Kerning().
Definition at line 359 of file t1afm.c.
References fi, FT_MulDiv(), i, if(), AFM_FontInfoRec_::NumTrackKern, and AFM_FontInfoRec_::TrackKerns.
Definition at line 234 of file t1afm.c.
References PSAux_ServiceRec_::afm_parser_funcs, AFM_FontInfoRec_::Ascender, AFM_FontInfoRec_::Descender, AFM_Parser_FuncsRec_::done, error, fi, T1_FontRec_::font_bbox, AFM_FontInfoRec_::FontBBox, AFM_ParserRec_::FontInfo, FT_FACE_FLAG_KERNING, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_NEW, FT_PEEK_ULONG_LE, AFM_ParserRec_::get_index, AFM_Parser_FuncsRec_::init, AFM_ParserRec_::memory, NULL, AFM_FontInfoRec_::NumKernPair, AFM_Parser_FuncsRec_::parse, start, T1_Done_Metrics(), t1_get_index(), T1_Read_PFM(), AFM_ParserRec_::user_data, FT_BBox_::xMax, FT_BBox_::xMin, FT_BBox_::yMax, and FT_BBox_::yMin.
| static FT_Error T1_Read_PFM | ( | FT_Face | t1_face, | |
| FT_Stream | stream, | |||
| AFM_FontInfo | fi | |||
| ) |  [static] | 
Definition at line 106 of file t1afm.c.
References FT_FaceRec_::charmap, FT_FaceRec_::charmaps, error, FT_PEEK_ULONG_LE, FT_PEEK_USHORT_LE, FT_QNEW_ARRAY, FT_Set_Charmap(), if(), AFM_FontInfoRec_::KernPairs, n, NULL, FT_FaceRec_::num_charmaps, AFM_FontInfoRec_::NumKernPair, p, FT_CharMapRec_::platform_id, start, PC3::stream(), and x12.
Referenced by T1_Read_Metrics().
 1.5.1
 1.5.1