zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ttkern.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_TRUETYPE_TAGS_H>
#include "ttkern.h"
#include "sferrors.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_ttkern
 
#define TT_KERN_INDEX(g1, g2)   ( ( (FT_ULong)(g1) << 16 ) | (g2) )
 

Functions

 tt_face_done_kern (TT_Face face)
 
 tt_face_get_kerning (TT_Face face, FT_UInt left_glyph, FT_UInt right_glyph)
 
 tt_face_load_kern (TT_Face face, FT_Stream stream)
 

Macro Definition Documentation

#define FT_COMPONENT   trace_ttkern

Definition at line 36 of file ttkern.c.

#define TT_KERN_INDEX (   g1,
  g2 
)    ( ( (FT_ULong)(g1) << 16 ) | (g2) )

Definition at line 40 of file ttkern.c.

Referenced by tt_face_get_kerning().

Function Documentation

tt_face_done_kern ( TT_Face  face)

Definition at line 167 of file ttkern.c.

References FT_FRAME_RELEASE.

Referenced by sfnt_done_face().

tt_face_get_kerning ( TT_Face  face,
FT_UInt  left_glyph,
FT_UInt  right_glyph 
)

Definition at line 181 of file ttkern.c.

References FT_NEXT_ULONG, FT_NEXT_USHORT, FT_PEEK_SHORT, FT_UNUSED, max, min, TT_KERN_INDEX, and version.

tt_face_load_kern ( TT_Face  face,
FT_Stream  stream 
)

Definition at line 44 of file ttkern.c.

References error, FT_ERROR, FT_FRAME_EXTRACT, FT_NEXT_ULONG, FT_NEXT_USHORT, and TTAG_kern.