2000-07-05 06:32:02 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
2000-10-28 19:10:06 +02:00
|
|
|
/* t1afm.h */
|
2000-07-05 06:32:02 +02:00
|
|
|
/* */
|
|
|
|
/* AFM support for Type 1 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-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
#ifndef T1AFM_H
|
|
|
|
#define T1AFM_H
|
2000-02-15 13:55:57 +01:00
|
|
|
|
2000-07-08 21:51:42 +02:00
|
|
|
|
2000-07-08 02:41:13 +02:00
|
|
|
#ifdef FT_FLAT_COMPILE
|
2000-07-08 21:51:42 +02:00
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
#include "t1objs.h"
|
2000-07-08 21:51:42 +02:00
|
|
|
|
2000-07-08 02:41:13 +02:00
|
|
|
#else
|
2000-07-08 21:51:42 +02:00
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
#include <type1/t1objs.h>
|
2000-07-08 02:41:13 +02:00
|
|
|
|
2000-07-08 21:51:42 +02:00
|
|
|
#endif
|
2000-02-15 13:55:57 +01:00
|
|
|
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-07-05 06:32:02 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
typedef struct T1_Kern_Pair_
|
2000-07-05 06:32:02 +02:00
|
|
|
{
|
|
|
|
FT_UInt glyph1;
|
|
|
|
FT_UInt glyph2;
|
|
|
|
FT_Vector kerning;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
} T1_Kern_Pair;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
typedef struct T1_AFM_
|
2000-07-05 06:32:02 +02:00
|
|
|
{
|
|
|
|
FT_Int num_pairs;
|
2000-10-28 19:10:06 +02:00
|
|
|
T1_Kern_Pair* kern_pairs;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
} T1_AFM;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-10-28 19:10:06 +02:00
|
|
|
FT_Error T1_Read_AFM( FT_Face face,
|
2000-07-05 06:32:02 +02:00
|
|
|
FT_Stream stream );
|
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-10-28 19:10:06 +02:00
|
|
|
void T1_Done_AFM( FT_Memory memory,
|
|
|
|
T1_AFM* afm );
|
2000-07-05 06:32:02 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-10-28 19:10:06 +02:00
|
|
|
void T1_Get_Kerning( T1_AFM* afm,
|
2000-07-05 06:32:02 +02:00
|
|
|
FT_UInt glyph1,
|
|
|
|
FT_UInt glyph2,
|
|
|
|
FT_Vector* kerning );
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2000-10-28 19:10:06 +02:00
|
|
|
#endif /* T1AFM_H */
|
2000-07-05 06:32:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|