2000-06-16 08:49:56 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* cidobjs.h */
|
|
|
|
/* */
|
|
|
|
/* CID objects manager (specification). */
|
|
|
|
/* */
|
2001-06-28 19:49:10 +02:00
|
|
|
/* Copyright 1996-2001 by */
|
2000-06-16 08:49:56 +02: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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#ifndef __CIDOBJS_H__
|
|
|
|
#define __CIDOBJS_H__
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
|
|
|
#include FT_CONFIG_CONFIG_H
|
|
|
|
#include FT_INTERNAL_TYPE1_TYPES_H
|
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
/* The following structures must be defined by the hinter */
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_Size_Hints_ CID_Size_Hints;
|
|
|
|
typedef struct CID_Glyph_Hints_ CID_Glyph_Hints;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2000-06-29 05:14:25 +02:00
|
|
|
/* CID_Driver */
|
2000-06-16 08:49:56 +02:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to a Type 1 driver object. */
|
|
|
|
/* */
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_DriverRec_* CID_Driver;
|
2000-06-16 08:49:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2000-06-29 05:14:25 +02:00
|
|
|
/* CID_Size */
|
2000-06-16 08:49:56 +02:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to a Type 1 size object. */
|
|
|
|
/* */
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_SizeRec_* CID_Size;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2000-06-29 05:14:25 +02:00
|
|
|
/* CID_GlyphSlot */
|
2000-06-16 08:49:56 +02:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to a Type 1 glyph slot object. */
|
|
|
|
/* */
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_GlyphSlotRec_* CID_GlyphSlot;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2000-06-29 05:14:25 +02:00
|
|
|
/* CID_CharMap */
|
2000-06-16 08:49:56 +02:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to a Type 1 character mapping object. */
|
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* The Type 1 format doesn't use a charmap but an encoding table. */
|
|
|
|
/* The driver is responsible for making up charmap objects */
|
|
|
|
/* corresponding to these tables. */
|
|
|
|
/* */
|
2000-06-29 05:14:25 +02:00
|
|
|
typedef struct CID_CharMapRec_* CID_CharMap;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
2000-07-01 00:24:36 +02:00
|
|
|
/* HERE BEGINS THE TYPE 1 SPECIFIC STUFF */
|
2000-06-16 08:49:56 +02:00
|
|
|
/* */
|
|
|
|
/*************************************************************************/
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-07-01 00:24:36 +02:00
|
|
|
typedef struct CID_SizeRec_
|
2000-06-01 05:27:48 +02:00
|
|
|
{
|
2000-07-01 00:24:36 +02:00
|
|
|
FT_SizeRec root;
|
|
|
|
FT_Bool valid;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
} CID_SizeRec;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-07-01 00:24:36 +02:00
|
|
|
typedef struct CID_GlyphSlotRec_
|
2000-06-01 05:27:48 +02:00
|
|
|
{
|
|
|
|
FT_GlyphSlotRec root;
|
|
|
|
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Bool hint;
|
|
|
|
FT_Bool scaled;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Fixed x_scale;
|
|
|
|
FT_Fixed y_scale;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
} CID_GlyphSlotRec;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_GlyphSlot_Done( CID_GlyphSlot slot );
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_GlyphSlot_Init( CID_GlyphSlot slot );
|
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Size_Done( CID_Size size );
|
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Size_Init( CID_Size size );
|
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Size_Reset( CID_Size size );
|
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Face_Init( FT_Stream stream,
|
2001-06-27 21:46:12 +02:00
|
|
|
CID_Face face,
|
|
|
|
FT_Int face_index,
|
|
|
|
FT_Int num_params,
|
|
|
|
FT_Parameter* params );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2001-12-20 10:36:21 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Face_Done( CID_Face face );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Driver_Init( CID_Driver driver );
|
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 10:36:21 +01:00
|
|
|
CID_Driver_Done( CID_Driver driver );
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_END_HEADER
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __CIDOBJS_H__ */
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|