2000-06-14 01:21:00 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* cidafm.h */
|
|
|
|
/* */
|
|
|
|
/* AFM support for CID-keyed fonts (specification). */
|
|
|
|
/* */
|
|
|
|
/* Copyright 1996-2000 by */
|
|
|
|
/* 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-06-01 05:27:48 +02:00
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
#ifndef CIDAFM_H
|
|
|
|
#define CIDAFM_H
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-14 01:21:00 +02:00
|
|
|
#include <cidobjs.h>
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-21 05:03:28 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_Kern_Pair_
|
2000-06-14 01:21:00 +02:00
|
|
|
{
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_UInt glyph1;
|
|
|
|
FT_UInt glyph2;
|
|
|
|
FT_Vector kerning;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
} CID_Kern_Pair;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
typedef struct CID_AFM_
|
2000-06-14 01:21:00 +02:00
|
|
|
{
|
2000-06-28 06:19:49 +02:00
|
|
|
FT_UInt num_pairs;
|
2000-06-28 01:20:35 +02:00
|
|
|
CID_Kern_Pair* kern_pairs;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-28 01:20:35 +02:00
|
|
|
} CID_AFM;
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
2000-06-25 09:43:15 +02:00
|
|
|
#if 1
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-21 05:03:28 +02:00
|
|
|
LOCAL_DEF
|
2000-06-28 06:19:49 +02:00
|
|
|
FT_Error CID_Read_AFM( FT_Face cid_face,
|
2000-06-21 05:03:28 +02:00
|
|
|
FT_Stream stream );
|
|
|
|
|
|
|
|
LOCAL_DEF
|
|
|
|
void CID_Done_AFM( FT_Memory memory,
|
2000-06-28 06:19:49 +02:00
|
|
|
CID_AFM* afm );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-21 05:03:28 +02:00
|
|
|
LOCAL_DEF
|
2000-06-28 06:19:49 +02:00
|
|
|
void CID_Get_Kerning( CID_AFM* afm,
|
2000-06-21 05:03:28 +02:00
|
|
|
FT_UInt glyph1,
|
|
|
|
FT_UInt glyph2,
|
|
|
|
FT_Vector* kerning );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-25 09:43:15 +02:00
|
|
|
#endif /* 1 */
|
2000-06-14 01:21:00 +02:00
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
#endif /* CIDAFM_H */
|
2000-06-14 01:21:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|