2000-12-08 03:42:29 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* cffobjs.h */
|
|
|
|
/* */
|
|
|
|
/* OpenType objects manager (specification). */
|
|
|
|
/* */
|
2001-06-28 19:49:10 +02:00
|
|
|
/* Copyright 1996-2001 by */
|
2000-12-08 03:42:29 +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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#ifndef __CFFOBJS_H__
|
|
|
|
#define __CFFOBJS_H__
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
|
|
|
#include FT_INTERNAL_CFF_TYPES_H
|
|
|
|
#include FT_INTERNAL_POSTSCRIPT_NAMES_H
|
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2001-01-03 08:14:12 +01:00
|
|
|
/* CFF_Driver */
|
2000-12-08 03:42:29 +01:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to an OpenType driver object. */
|
|
|
|
/* */
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef struct CFF_DriverRec_* CFF_Driver;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef TT_Face CFF_Face;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2001-01-03 08:14:12 +01:00
|
|
|
/* CFF_Size */
|
2000-12-08 03:42:29 +01:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to an OpenType size object. */
|
|
|
|
/* */
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef FT_Size CFF_Size;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Type> */
|
2001-01-03 08:14:12 +01:00
|
|
|
/* CFF_GlyphSlot */
|
2000-12-08 03:42:29 +01:00
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A handle to an OpenType glyph slot object. */
|
|
|
|
/* */
|
2001-01-03 08:14:12 +01:00
|
|
|
typedef struct CFF_GlyphSlotRec_
|
2000-12-08 03:42:29 +01:00
|
|
|
{
|
|
|
|
FT_GlyphSlotRec root;
|
|
|
|
|
|
|
|
FT_Bool hint;
|
|
|
|
FT_Bool scaled;
|
|
|
|
|
|
|
|
FT_Fixed x_scale;
|
|
|
|
FT_Fixed y_scale;
|
|
|
|
|
2001-01-03 01:21:59 +01:00
|
|
|
} CFF_GlyphSlotRec, *CFF_GlyphSlot;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Subglyph transformation record. */
|
|
|
|
/* */
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef struct CFF_Transform_
|
2000-12-08 03:42:29 +01:00
|
|
|
{
|
|
|
|
FT_Fixed xx, xy; /* transformation matrix coefficients */
|
|
|
|
FT_Fixed yx, yy;
|
|
|
|
FT_F26Dot6 ox, oy; /* offsets */
|
|
|
|
|
2001-01-03 01:21:59 +01:00
|
|
|
} CFF_Transform;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* this is only used in the case of a pure CFF font with no charmap */
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef struct CFF_CharMapRec_
|
2000-12-08 03:42:29 +01:00
|
|
|
{
|
|
|
|
TT_CharMapRec root;
|
|
|
|
PS_Unicodes unicodes;
|
|
|
|
|
2001-01-03 01:21:59 +01:00
|
|
|
} CFF_CharMapRec, *CFF_CharMap;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* TrueType driver class. */
|
|
|
|
/* */
|
2001-01-03 01:21:59 +01:00
|
|
|
typedef struct CFF_DriverRec_
|
2000-12-08 03:42:29 +01:00
|
|
|
{
|
|
|
|
FT_DriverRec root;
|
|
|
|
void* extension_component;
|
|
|
|
|
2001-01-03 01:21:59 +01:00
|
|
|
} CFF_DriverRec;
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Size_Init( CFF_Size size );
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Size_Done( CFF_Size size );
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Size_Reset( CFF_Size size );
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_GlyphSlot_Done( CFF_GlyphSlot slot );
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_GlyphSlot_Init( CFF_GlyphSlot slot );
|
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Face functions */
|
|
|
|
/* */
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Face_Init( FT_Stream stream,
|
2001-06-27 21:46:12 +02:00
|
|
|
CFF_Face face,
|
|
|
|
FT_Int face_index,
|
|
|
|
FT_Int num_params,
|
|
|
|
FT_Parameter* params );
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Face_Done( CFF_Face face );
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Driver functions */
|
|
|
|
/* */
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Driver_Init( CFF_Driver driver );
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-12-20 14:14:18 +01:00
|
|
|
CFF_Driver_Done( CFF_Driver driver );
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __CFFOBJS_H__ */
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|