2000-07-07 21:46:01 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* winfnt.h */
|
|
|
|
/* */
|
|
|
|
/* FreeType font driver for Windows FNT/FON files */
|
|
|
|
/* */
|
2015-01-17 20:41:43 +01:00
|
|
|
/* Copyright 1996-2015 by */
|
2000-07-07 21:46:01 +02:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
2007-06-16 09:59:39 +02:00
|
|
|
/* Copyright 2007 Dmitry Timoshkov for Codeweavers */
|
2000-07-07 21:46:01 +02:00
|
|
|
/* */
|
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
|
|
|
|
2009-04-05 17:25:14 +02:00
|
|
|
#ifdef FT_CONFIG_OPTION_PIC
|
|
|
|
#error "this module does not support PIC yet"
|
2012-01-16 18:00:24 +01:00
|
|
|
#endif
|
2009-04-05 17:25:14 +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;
|
|
|
|
|
|
|
|
|
2007-06-16 09:59:39 +02:00
|
|
|
typedef struct WinPE32_HeaderRec_
|
|
|
|
{
|
|
|
|
FT_ULong magic;
|
|
|
|
FT_UShort machine;
|
|
|
|
FT_UShort number_of_sections;
|
|
|
|
/* skipped content */
|
|
|
|
FT_UShort size_of_optional_header;
|
|
|
|
/* skipped content */
|
|
|
|
FT_UShort magic32;
|
|
|
|
/* skipped content */
|
|
|
|
FT_ULong rsrc_virtual_address;
|
|
|
|
FT_ULong rsrc_size;
|
|
|
|
/* skipped content */
|
|
|
|
|
|
|
|
} WinPE32_HeaderRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinPE32_SectionRec_
|
|
|
|
{
|
|
|
|
FT_Byte name[8];
|
|
|
|
/* skipped content */
|
|
|
|
FT_ULong virtual_address;
|
|
|
|
FT_ULong size_of_raw_data;
|
|
|
|
FT_ULong pointer_to_raw_data;
|
|
|
|
/* skipped content */
|
|
|
|
|
|
|
|
} WinPE32_SectionRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinPE_RsrcDirRec_
|
|
|
|
{
|
|
|
|
FT_ULong characteristics;
|
|
|
|
FT_ULong time_date_stamp;
|
|
|
|
FT_UShort major_version;
|
|
|
|
FT_UShort minor_version;
|
|
|
|
FT_UShort number_of_named_entries;
|
|
|
|
FT_UShort number_of_id_entries;
|
|
|
|
|
|
|
|
} WinPE_RsrcDirRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinPE_RsrcDirEntryRec_
|
|
|
|
{
|
|
|
|
FT_ULong name;
|
|
|
|
FT_ULong offset;
|
|
|
|
|
|
|
|
} WinPE_RsrcDirEntryRec;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WinPE_RsrcDataEntryRec_
|
|
|
|
{
|
|
|
|
FT_ULong offset_to_data;
|
|
|
|
FT_ULong size;
|
|
|
|
FT_ULong code_page;
|
|
|
|
FT_ULong reserved;
|
|
|
|
|
|
|
|
} WinPE_RsrcDataEntryRec;
|
|
|
|
|
|
|
|
|
* 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 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
|
2007-06-16 09:59:39 +02:00
|
|
|
#define WINFNT_PE_MAGIC 0x4550
|
* 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 FNT_FontRec_
|
|
|
|
{
|
|
|
|
FT_ULong offset;
|
|
|
|
|
|
|
|
FT_WinFNT_HeaderRec header;
|
|
|
|
|
|
|
|
FT_Byte* fnt_frame;
|
|
|
|
FT_ULong fnt_size;
|
2004-04-01 22:35:57 +02:00
|
|
|
FT_String* family_name;
|
* 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
|
|
|
|
|
|
|
} 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 */
|