21#include FT_INTERNAL_DEBUG_H
22#include FT_INTERNAL_STREAM_H
23#include FT_TRUETYPE_TAGS_H
36#define FT_COMPONENT trace_ttkern
40#define TT_KERN_INDEX( g1, g2 ) ( ( (FT_ULong)(g1) << 16 ) | (g2) )
52 FT_UInt32
avail = 0, ordered = 0;
63 " kerning table is too small - ignored\n" ));
71 " could not extract kerning table\n" ));
83 if ( num_tables > 32 )
86 for ( nn = 0; nn < num_tables; nn++ )
90 FT_UInt32
mask = (FT_UInt32)1UL << nn;
93 if (
p + 6 > p_limit )
107 if ( p_next > p_limit )
117 if ( ( coverage & 3U ) != 0x0001 ||
124 if ( ( p_next -
p ) < 6 * (
int)num_pairs )
125 num_pairs = (
FT_UInt)( ( p_next -
p ) / 6 );
148 if ( cur_pair <= old_pair )
163 face->num_kern_tables = nn;
165 face->kern_order_bits = ordered;
179 face->kern_table_size = 0;
180 face->num_kern_tables = 0;
181 face->kern_avail_bits = 0;
182 face->kern_order_bits = 0;
201 count > 0 &&
p + 6 <= p_limit;
217 if (
next > p_limit )
220 if ( (
face->kern_avail_bits &
mask ) == 0 )
228 if ( (
next -
p ) < 6 * (
int)num_pairs )
231 switch ( coverage >> 8 )
269 for ( count2 = num_pairs; count2 > 0; count2-- )
static const WCHAR version[]
#define FT_ASSERT(condition)
#define FT_ERROR(varformat)
#define FT_FRAME_RELEASE(bytes)
#define FT_NEXT_USHORT(buffer)
#define FT_FRAME_EXTRACT(size, bytes)
#define FT_NEXT_ULONG(buffer)
GLuint GLuint GLsizei count
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLdouble GLdouble GLdouble GLdouble q
GLenum GLuint GLint GLenum face
GLuint GLsizei GLsizei * length
GLuint64EXT GLuint GLuint GLenum GLenum GLuint GLuint key0
static unsigned __int64 next
FT_UInt FT_UInt right_glyph
tt_face_done_kern(TT_Face face)
#define TT_KERN_INDEX(g1, g2)
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)