2002-03-09 23:29:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1994-1996 Kevin Carothers and Alex Korobka
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2000-07-25 12:25:40 +00:00
|
|
|
#include "wine/wingdi16.h"
|
|
|
|
|
|
|
|
#include "pshpack1.h"
|
1996-12-08 19:25:27 +00:00
|
|
|
|
|
|
|
enum data_types {dfChar, dfShort, dfLong, dfString};
|
|
|
|
|
|
|
|
#define ERROR_DATA 1
|
|
|
|
#define ERROR_VERSION 2
|
|
|
|
#define ERROR_SIZE 3
|
|
|
|
#define ERROR_MEMORY 4
|
|
|
|
#define ERROR_FILE 5
|
|
|
|
|
|
|
|
typedef struct tagFontHeader
|
|
|
|
{
|
2000-07-25 12:25:40 +00:00
|
|
|
short dfVersion; /* Version */
|
|
|
|
long dfSize; /* Total File Size */
|
|
|
|
char dfCopyright[60]; /* Copyright notice */
|
|
|
|
FONTINFO16 fi; /* FONTINFO structure */
|
1996-12-08 19:25:27 +00:00
|
|
|
} fnt_hdrS;
|
|
|
|
|
|
|
|
typedef struct WinCharStruct
|
|
|
|
{
|
|
|
|
unsigned int charWidth;
|
2000-07-25 12:25:40 +00:00
|
|
|
long charOffset;
|
1996-12-08 19:25:27 +00:00
|
|
|
} WinCharS;
|
|
|
|
|
|
|
|
typedef struct fntFontStruct
|
|
|
|
{
|
|
|
|
fnt_hdrS hdr;
|
|
|
|
WinCharS *dfCharTable;
|
|
|
|
unsigned char *dfDeviceP;
|
|
|
|
unsigned char *dfFaceP;
|
|
|
|
unsigned char *dfBitsPointerP;
|
|
|
|
unsigned char *dfBitsOffsetP;
|
|
|
|
short *dfColorTableP;
|
|
|
|
} fnt_fontS;
|
|
|
|
|
2000-07-25 12:25:40 +00:00
|
|
|
#include "poppack.h"
|