2000-02-15 13:55:57 +01:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* t1afm.h - support for reading Type 1 AFM files
|
|
|
|
*
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef T1AFM_H
|
|
|
|
#define T1AFM_H
|
|
|
|
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
#include <freetype/internal/ftstream.h>
|
2000-05-11 20:23:52 +02:00
|
|
|
#include <freetype/internal/ftobjs.h>
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
#include <freetype/internal/t1types.h>
|
|
|
|
#include <freetype/internal/t1errors.h>
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
/* In this version, we only read the kerning table from the */
|
|
|
|
/* AFM file. We may add support for ligatures a bit later.. */
|
|
|
|
|
2000-06-28 01:21:51 +02:00
|
|
|
typedef struct Z1_Kern_Pair_
|
2000-02-15 13:55:57 +01:00
|
|
|
{
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_UInt glyph1;
|
|
|
|
FT_UInt glyph2;
|
|
|
|
FT_Vector kerning;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-06-28 01:21:51 +02:00
|
|
|
} Z1_Kern_Pair;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
2000-06-28 01:21:51 +02:00
|
|
|
typedef struct Z1_AFM_
|
2000-02-15 13:55:57 +01:00
|
|
|
{
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Int num_pairs;
|
2000-06-28 01:21:51 +02:00
|
|
|
Z1_Kern_Pair* kern_pairs;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
2000-06-28 01:21:51 +02:00
|
|
|
} Z1_AFM;
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
LOCAL_DEF
|
2000-06-28 01:21:51 +02:00
|
|
|
FT_Error Z1_Read_AFM( FT_Face face,
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
FT_Stream stream );
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
LOCAL_DEF
|
2000-06-28 01:21:51 +02:00
|
|
|
void Z1_Done_AFM( FT_Memory memory,
|
|
|
|
Z1_AFM* afm );
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
LOCAL_DEF
|
2000-06-28 01:21:51 +02:00
|
|
|
void Z1_Get_Kerning( Z1_AFM* afm,
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_UInt glyph1,
|
|
|
|
FT_UInt glyph2,
|
|
|
|
FT_Vector* kerning );
|
2000-02-15 13:55:57 +01:00
|
|
|
|
|
|
|
#endif /* T1AFM_H */
|