2002-02-22 19:28:11 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* ttcmap0.h */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* TrueType new character mapping table (cmap) support (specification). */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* Copyright 2002 by */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2002-03-22 16:02:38 +01:00
|
|
|
#ifndef __TTCMAP0_H__
|
|
|
|
#define __TTCMAP0_H__
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_TRUETYPE_TYPES_H
|
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
|
|
|
|
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef struct TT_CMapRec_
|
2002-03-01 03:26:22 +01:00
|
|
|
{
|
|
|
|
FT_CMapRec cmap;
|
2002-03-31 20:48:24 +02:00
|
|
|
FT_Byte* data; /* pointer to in-memory cmap table */
|
2002-03-01 03:26:22 +01:00
|
|
|
|
|
|
|
} TT_CMapRec, *TT_CMap;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef const struct TT_CMap_ClassRec_* TT_CMap_Class;
|
2002-03-01 03:26:22 +01:00
|
|
|
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef FT_Error
|
|
|
|
(*TT_CMap_ValidateFunc)( FT_Byte* data,
|
|
|
|
FT_Validator valid );
|
|
|
|
|
|
|
|
typedef struct TT_CMap_ClassRec_
|
2002-03-01 03:26:22 +01:00
|
|
|
{
|
|
|
|
FT_CMap_ClassRec clazz;
|
|
|
|
FT_UInt format;
|
|
|
|
TT_CMap_ValidateFunc validate;
|
|
|
|
|
|
|
|
} TT_CMap_ClassRec;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
|
|
|
|
typedef struct TT_ValidatorRec_
|
2002-03-22 16:02:38 +01:00
|
|
|
{
|
2002-03-22 18:09:52 +01:00
|
|
|
FT_ValidatorRec validator;
|
|
|
|
FT_UInt num_glyphs;
|
2002-03-22 16:02:38 +01:00
|
|
|
|
|
|
|
} TT_ValidatorRec, *TT_Validator;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
|
|
|
|
#define TT_VALIDATOR( x ) ((TT_Validator)( x ))
|
|
|
|
#define TT_VALID_GLYPH_COUNT( x ) TT_VALIDATOR( x )->num_glyphs
|
2002-03-22 16:02:38 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
|
2002-04-28 14:25:31 +02:00
|
|
|
#ifdef FT_CONFIG_OPTION_USE_CMAPS
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-03-31 20:48:24 +02:00
|
|
|
TT_Build_CMaps( TT_Face face );
|
2002-02-22 19:28:11 +01:00
|
|
|
|
2002-04-28 14:25:31 +02:00
|
|
|
#endif
|
|
|
|
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
2002-03-22 16:02:38 +01:00
|
|
|
#endif /* __TTCMAP0_H__ */
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|