zenilib
0.5.3.0
|
#include <ft2build.h>
#include "t1afm.h"
#include "t1errors.h"
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_POSTSCRIPT_AUX_H>
Go to the source code of this file.
Macros | |
#define | FT_COMPONENT trace_t1afm |
#define | KERN_INDEX(g1, g2) ( ( (FT_ULong)(g1) << 16 ) | (g2) ) |
Functions | |
compare_kern_pairs (const void *a, const void *b) | |
T1_Done_Metrics (FT_Memory memory, AFM_FontInfo fi) | |
static FT_Int | t1_get_index (const char *name, FT_Offset len, void *user_data) |
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) | |
T1_Read_Metrics (FT_Face t1_face, FT_Stream stream) | |
static FT_Error | T1_Read_PFM (FT_Face t1_face, FT_Stream stream, AFM_FontInfo fi) |
#define KERN_INDEX | ( | g1, | |
g2 | |||
) | ( ( (FT_ULong)(g1) << 16 ) | (g2) ) |
Definition at line 80 of file t1afm.c.
Referenced by compare_kern_pairs(), and T1_Get_Kerning().
Definition at line 85 of file t1afm.c.
References AFM_KernPairRec_::index1, AFM_KernPairRec_::index2, and KERN_INDEX.
Referenced by T1_Read_PFM().
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(), 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 idx, 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 AFM_TrackKernRec_::degree, FT_MulDiv(), i, AFM_TrackKernRec_::max_kern, AFM_TrackKernRec_::max_ptsize, AFM_TrackKernRec_::min_kern, AFM_TrackKernRec_::min_ptsize, 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, 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, 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 |
Definition at line 106 of file t1afm.c.
References FT_FaceRec_::charmap, FT_FaceRec_::charmaps, compare_kern_pairs(), FT_StreamRec_::cursor, error, FT_FREE, FT_Get_Char_Index(), FT_PEEK_SHORT_LE, FT_PEEK_ULONG_LE, FT_PEEK_USHORT_LE, FT_QNEW_ARRAY, ft_qsort, FT_Set_Charmap(), AFM_KernPairRec_::index1, AFM_KernPairRec_::index2, AFM_FontInfoRec_::KernPairs, FT_StreamRec_::limit, FT_StreamRec_::memory, NULL, FT_FaceRec_::num_charmaps, AFM_FontInfoRec_::NumKernPair, FT_CharMapRec_::platform_id, sizeof(), AFM_KernPairRec_::x, and AFM_KernPairRec_::y.
Referenced by T1_Read_Metrics().