afglobal.c File Reference

#include "afglobal.h"
#include "afdummy.h"
#include "aflatin.h"
#include "afcjk.h"
#include "afindic.h"
#include "afpic.h"
#include "aferrors.h"

Go to the source code of this file.

Classes

struct  AF_FaceGlobalsRec_

Defines

#define AF_SCRIPT_LIST_DEFAULT   2
#define AF_SCRIPT_LIST_NONE   0x7F
#define AF_DIGIT   0x80

Typedefs

typedef AF_FaceGlobalsRec_ AF_FaceGlobalsRec

Functions

static FT_Error af_face_globals_compute_script_coverage (AF_FaceGlobals globals)
 af_face_globals_new (FT_Face face, AF_FaceGlobals *aglobals)
 af_face_globals_free (AF_FaceGlobals globals)
 af_face_globals_get_metrics (AF_FaceGlobals globals, FT_UInt gindex, FT_UInt options, AF_ScriptMetrics *ametrics)
 af_face_globals_is_digit (AF_FaceGlobals globals, FT_UInt gindex)

Variables

static AF_ScriptClass const af_script_classes []


Define Documentation

#define AF_DIGIT   0x80

Definition at line 57 of file afglobal.c.

Referenced by af_face_globals_is_digit().

#define AF_SCRIPT_LIST_DEFAULT   2

Definition at line 53 of file afglobal.c.

#define AF_SCRIPT_LIST_NONE   0x7F

Definition at line 55 of file afglobal.c.

Referenced by af_face_globals_compute_script_coverage(), and af_face_globals_get_metrics().


Typedef Documentation

typedef struct AF_FaceGlobalsRec_ AF_FaceGlobalsRec


Function Documentation

static FT_Error af_face_globals_compute_script_coverage ( AF_FaceGlobals  globals  )  [static]

Definition at line 79 of file afglobal.c.

References AF_SCRIPT_CLASSES_GET, AF_SCRIPT_LIST_NONE, error, for(), FT_ENCODING_UNICODE, FT_Get_Char_Index(), FT_Get_Next_Char(), FT_MEM_SET, FT_Select_Charmap(), i, if(), and NULL.

Referenced by af_face_globals_new().

af_face_globals_free ( AF_FaceGlobals  globals  ) 

Definition at line 212 of file afglobal.c.

References AF_SCRIPT_CLASSES_GET, AF_SCRIPT_MAX, FT_ASSERT, FT_FREE, if(), and NULL.

Referenced by af_face_globals_new(), and af_loader_reset().

af_face_globals_get_metrics ( AF_FaceGlobals  globals,
FT_UInt  gindex,
FT_UInt  options,
AF_ScriptMetrics ametrics 
)

Definition at line 246 of file afglobal.c.

References AF_SCRIPT_CLASSES_GET, AF_SCRIPT_LIST_NONE, error, FT_ALLOC, FT_FREE, metrics(), and NULL.

Referenced by af_loader_load_glyph().

af_face_globals_is_digit ( AF_FaceGlobals  globals,
FT_UInt  gindex 
)

Definition at line 310 of file afglobal.c.

References AF_DIGIT, and FT_Bool.

af_face_globals_new ( FT_Face  face,
AF_FaceGlobals aglobals 
)

Definition at line 181 of file afglobal.c.

References af_face_globals_compute_script_coverage(), af_face_globals_free(), error, AF_FaceGlobalsRec_::face, FT_ALLOC, NULL, FT_FaceRec_::num_glyphs, and sizeof().

Referenced by af_loader_reset().


Variable Documentation

AF_ScriptClass const af_script_classes[] [static]

Initial value:

  {
    &af_dummy_script_class,



    &af_latin_script_class,
    &af_cjk_script_class,
    &af_indic_script_class, 
    NULL  
  }

Definition at line 38 of file afglobal.c.


Generated on Tue Jul 5 15:58:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1