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 | Typedefs | Functions
sfobjs.c File Reference
#include <ft2build.h>
#include "sfobjs.h"
#include "ttload.h"
#include "ttcmap.h"
#include "ttkern.h"
#include "sferrors.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_sfobjs
 
#define FT_STRUCTURE   TTC_HeaderRec
 
#define LOAD_(x)
 
#define LOADM_(x, vertical)
 
#define GET_NAME(id, field)
 

Typedefs

typedef FT_String *(* TT_NameEntry_ConvertFunc) (TT_NameEntry entry, FT_Memory memory)
 

Functions

 sfnt_init_face (FT_Stream stream, TT_Face face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
 
 sfnt_load_face (FT_Stream stream, TT_Face face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
 
 sfnt_done_face (TT_Face face)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_sfobjs

Definition at line 44 of file sfobjs.c.

◆ FT_STRUCTURE

#define FT_STRUCTURE   TTC_HeaderRec

◆ GET_NAME

#define GET_NAME (   id,
  field 
)
Value:
do { \
error = tt_face_get_name( face, TT_NAME_ID_ ## id, field ); \
if ( error ) \
goto Exit; \
} while ( 0 )
GLenum GLuint GLint GLenum face
FT_Error error
Definition: cffdrivr.c:411

Definition at line 537 of file sfobjs.c.

Referenced by sfnt_load_face().

◆ LOAD_

#define LOAD_ (   x)
Value:
do { \
FT_TRACE2(( "`" #x "' " )); \
FT_TRACE3(( "-->\n" )); \
\
error = sfnt->load_ ## x( face, stream ); \
FT_TRACE2(( "%s\n", ( !error ) \
? "loaded" \
: FT_ERR_EQ( error, Table_Missing ) \
? "missing" \
: "failed to load" )); \
FT_TRACE3(( "\n" )); \
} while ( 0 )
GLuint GLuint stream
GLint GLint GLint GLint GLint x
GLenum GLuint GLint GLenum face
FT_Error error
Definition: cffdrivr.c:411
#define FT_TRACE2(varformat)
Definition: ftdebug.h:159
#define FT_ERR_EQ(x, e)
Definition: fttypes.h:587

Definition at line 506 of file sfobjs.c.

Referenced by sfnt_load_face().

◆ LOADM_

#define LOADM_ (   x,
  vertical 
)
Value:
do { \
FT_TRACE2(( "`%s" #x "' ", \
vertical ? "vertical " : "" )); \
FT_TRACE3(( "-->\n" )); \
\
error = sfnt->load_ ## x( face, stream, vertical ); \
FT_TRACE2(( "%s\n", ( !error ) \
? "loaded" \
: FT_ERR_EQ( error, Table_Missing ) \
? "missing" \
: "failed to load" )); \
FT_TRACE3(( "\n" )); \
} while ( 0 )
GLuint GLuint stream
GLint GLint GLint GLint GLint x
GLenum GLuint GLint GLenum face
FT_Error error
Definition: cffdrivr.c:411
#define FT_TRACE2(varformat)
Definition: ftdebug.h:159
#define FT_ERR_EQ(x, e)
Definition: fttypes.h:587

Definition at line 521 of file sfobjs.c.

Referenced by sfnt_load_face().

Typedef Documentation

◆ TT_NameEntry_ConvertFunc

typedef FT_String*(* TT_NameEntry_ConvertFunc) (TT_NameEntry entry, FT_Memory memory)

Definition at line 118 of file sfobjs.c.

Function Documentation

◆ sfnt_done_face()

sfnt_done_face ( TT_Face  face)

◆ sfnt_init_face()

sfnt_init_face ( FT_Stream  stream,
TT_Face  face,
FT_Int  face_index,
FT_Int  num_params,
FT_Parameter params 
)

◆ sfnt_load_face()

sfnt_load_face ( FT_Stream  stream,
TT_Face  face,
FT_Int  face_index,
FT_Int  num_params,
FT_Parameter params 
)