2000-07-07 21:46:01 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* winfnt.h */
|
|
|
|
/* */
|
|
|
|
/* FreeType font driver for Windows FNT/FON files */
|
|
|
|
/* */
|
2003-12-26 08:26:08 +01:00
|
|
|
/* Copyright 1996-2001, 2002, 2003 by */
|
2000-07-07 21:46:01 +02:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
2000-07-09 00:52:21 +02:00
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
2000-07-07 21:46:01 +02:00
|
|
|
/* 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-07-09 00:52:21 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#ifndef __WINFNT_H__
|
|
|
|
#define __WINFNT_H__
|
2000-07-07 21:46:01 +02:00
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#include <ft2build.h>
|
* include/freetype/internal/fnttypes.h,
include/freetype/internal/ftserv.h, src/base/ftbdf.c, src/base/ftmm.c,
src/base/ftobjs.c, src/base/ftpfr.c, src/base/ftwinfnt.c,
src/base/ftxf86.c, src/pfr/pfrdrivr.c, src/winfonts/winfnt.c,
src/winfonts/winfnt.h, include/freetype/internal/service/svwinfnt.h,:
simplification of service lookup macros, updating the PFR and
WINFNT font drivers to new services
2003-09-21 19:15:55 +02:00
|
|
|
#include FT_WINFONTS_H
|
2000-12-09 01:45:38 +01:00
|
|
|
#include FT_INTERNAL_DRIVER_H
|
2000-07-09 00:52:21 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
2000-08-01 15:17:04 +02:00
|
|
|
|
* include/freetype/internal/fnttypes.h,
include/freetype/internal/ftserv.h, src/base/ftbdf.c, src/base/ftmm.c,
src/base/ftobjs.c, src/base/ftpfr.c, src/base/ftwinfnt.c,
src/base/ftxf86.c, src/pfr/pfrdrivr.c, src/winfonts/winfnt.c,
src/winfonts/winfnt.h, include/freetype/internal/service/svwinfnt.h,:
simplification of service lookup macros, updating the PFR and
WINFNT font drivers to new services
2003-09-21 19:15:55 +02:00
|
|
|
typedef struct WinMZ_HeaderRec_
|
|
|
|
{
|
|
|
|
FT_UShort magic;
|
|
|
|
/* skipped content */
|
|
|
|
FT_UShort lfanew;
|
|
|
|
|
|
|
|
} WinMZ_HeaderRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinNE_HeaderRec_
|
|
|
|
{
|
|
|
|
FT_UShort magic;
|
|
|
|
/* skipped content */
|
|
|
|
FT_UShort resource_tab_offset;
|
|
|
|
FT_UShort rname_tab_offset;
|
|
|
|
|
|
|
|
} WinNE_HeaderRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinNameInfoRec_
|
|
|
|
{
|
|
|
|
FT_UShort offset;
|
|
|
|
FT_UShort length;
|
|
|
|
FT_UShort flags;
|
|
|
|
FT_UShort id;
|
|
|
|
FT_UShort handle;
|
|
|
|
FT_UShort usage;
|
|
|
|
|
|
|
|
} WinNameInfoRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinResourceInfoRec_
|
|
|
|
{
|
|
|
|
FT_UShort type_id;
|
|
|
|
FT_UShort count;
|
|
|
|
|
|
|
|
} WinResourceInfoRec;
|
|
|
|
|
|
|
|
|
|
|
|
#define WINFNT_MZ_MAGIC 0x5A4D
|
|
|
|
#define WINFNT_NE_MAGIC 0x454E
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct FNT_FontRec_
|
|
|
|
{
|
|
|
|
FT_ULong offset;
|
|
|
|
FT_Int size_shift;
|
|
|
|
|
|
|
|
FT_WinFNT_HeaderRec header;
|
|
|
|
|
|
|
|
FT_Byte* fnt_frame;
|
|
|
|
FT_ULong fnt_size;
|
|
|
|
|
|
|
|
} FNT_FontRec, *FNT_Font;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct FNT_FaceRec_
|
|
|
|
{
|
|
|
|
FT_FaceRec root;
|
|
|
|
FNT_Font font;
|
|
|
|
|
|
|
|
FT_CharMap charmap_handle;
|
|
|
|
FT_CharMapRec charmap; /* a single charmap per face */
|
|
|
|
|
|
|
|
} FNT_FaceRec, *FNT_Face;
|
|
|
|
|
2000-08-01 15:17:04 +02:00
|
|
|
|
* include/freetype/internal/ftdriver.h,
include/freetype/internal/ftobjs.h,
src/base/ftapi.c, src/base/ftobjs.c,
src/cff/cffdrivr.c, src/cff/cffdrivr.h,
src/cid/cidriver.c, src/cid/cidriver.h,
src/pcf/pcfdriver.c, src/pcf/pcfdriver.h,
src/truetype/ttdriver.c, src/truetype/ttdriver.h,
src/type1/t1driver.c, src/type1/t1driver.h,
src/winfonts/winfnt.c, src/winfonts/winfnt.h:
updating the type definitions for font font drivers
2002-03-14 10:22:48 +01:00
|
|
|
FT_EXPORT_VAR( const FT_Driver_ClassRec ) winfnt_driver_class;
|
2000-07-09 00:52:21 +02:00
|
|
|
|
2000-07-07 21:46:01 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
FT_END_HEADER
|
2000-08-01 15:17:04 +02:00
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __WINFNT_H__ */
|
2000-07-09 00:52:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|