parent
994d7747fb
commit
a929ba9b20
36 changed files with 3096 additions and 2684 deletions
File diff suppressed because it is too large
Load Diff
@ -1,47 +1,59 @@ |
||||
/***************************************************************************
|
||||
* |
||||
* t1afm.h - support for reading Type 1 AFM files |
||||
* |
||||
* |
||||
***************************************************************************/ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* t1afm.h */ |
||||
/* */ |
||||
/* 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. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#ifndef T1AFM_H |
||||
#define T1AFM_H |
||||
|
||||
#include <freetype/internal/ftobjs.h> |
||||
|
||||
/* In this version, we only read the kerning table from the */ |
||||
/* AFM file. We may add support for ligatures a bit later.. */ |
||||
|
||||
typedef struct T1_Kern_Pair_ |
||||
{ |
||||
FT_UInt glyph1; |
||||
FT_UInt glyph2; |
||||
FT_Vector kerning; |
||||
typedef struct T1_Kern_Pair_ |
||||
{ |
||||
FT_UInt glyph1; |
||||
FT_UInt glyph2; |
||||
FT_Vector kerning; |
||||
|
||||
} T1_Kern_Pair; |
||||
} T1_Kern_Pair; |
||||
|
||||
typedef struct T1_AFM_ |
||||
{ |
||||
FT_Int num_pairs; |
||||
T1_Kern_Pair* kern_pairs; |
||||
|
||||
typedef struct T1_AFM_ |
||||
{ |
||||
FT_Int num_pairs; |
||||
T1_Kern_Pair* kern_pairs; |
||||
} T1_AFM; |
||||
|
||||
} T1_AFM; |
||||
|
||||
LOCAL_DEF |
||||
FT_Error T1_Read_AFM( FT_Face face, |
||||
FT_Stream stream ); |
||||
|
||||
LOCAL_DEF |
||||
FT_Error T1_Read_AFM( FT_Face face, |
||||
FT_Stream stream ); |
||||
LOCAL_DEF |
||||
void T1_Done_AFM( FT_Memory memory, |
||||
T1_AFM* afm ); |
||||
|
||||
LOCAL_DEF |
||||
void T1_Done_AFM( FT_Memory memory, |
||||
T1_AFM* afm ); |
||||
LOCAL_DEF |
||||
void T1_Get_Kerning( T1_AFM* afm, |
||||
FT_UInt glyph1, |
||||
FT_UInt glyph2, |
||||
FT_Vector* kerning ); |
||||
|
||||
LOCAL_DEF |
||||
void T1_Get_Kerning( T1_AFM* afm, |
||||
FT_UInt glyph1, |
||||
FT_UInt glyph2, |
||||
FT_Vector* kerning ); |
||||
|
||||
#endif /* T1AFM_H */ |
||||
|
||||
|
||||
/* END */ |
||||
|
@ -1,26 +1,30 @@ |
||||
/*******************************************************************
|
||||
* |
||||
* t1driver.h |
||||
* |
||||
* High-level Type1 driver interface for FreeType 2.0 |
||||
* |
||||
* Copyright 1996-1998 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. |
||||
* |
||||
******************************************************************/ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* t1driver.h */ |
||||
/* */ |
||||
/* High-level Type 1 driver interface (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. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#ifndef T1DRIVER_H |
||||
#define T1DRIVER_H |
||||
|
||||
#include <freetype/internal/ftdriver.h> |
||||
|
||||
FT_EXPORT_VAR(const FT_Driver_Class) t1_driver_class; |
||||
FT_EXPORT_VAR( const FT_Driver_Class ) t1_driver_class; |
||||
|
||||
|
||||
#endif /* T1DRIVER_H */ |
||||
|
||||
|
||||
/* END */ |
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue