Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ttkern.c File Reference
#include <ft2build.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_load_kern (TT_Face face, FT_Stream stream)
 
 tt_face_done_kern (TT_Face face)
 
 tt_face_get_kerning (TT_Face face, FT_UInt left_glyph, FT_UInt right_glyph)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_ttkern

Definition at line 36 of file ttkern.c.

◆ TT_KERN_INDEX

#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_done_kern ( TT_Face  face)

Definition at line 167 of file ttkern.c.

References FT_FRAME_RELEASE, and FT_LOCAL_DEF.

Referenced by sfnt_done_face().

◆ tt_face_get_kerning()

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, vl::min(), TT_KERN_INDEX, and version.

◆ tt_face_load_kern()

tt_face_load_kern ( TT_Face  face,
FT_Stream  stream 
)