fnt2bdf.h 1.56 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 18
 */

19 20 21
#include "wine/wingdi16.h"

#include "pshpack1.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
22 23 24 25 26 27 28 29 30

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

31
typedef struct tagFontHeader
Alexandre Julliard's avatar
Alexandre Julliard committed
32
{
33 34 35 36
    short dfVersion;		/* Version */
    long dfSize;		/* Total File Size */
    char dfCopyright[60];	/* Copyright notice */
    FONTINFO16 fi;		/* FONTINFO structure */
Alexandre Julliard's avatar
Alexandre Julliard committed
37 38 39 40 41
} fnt_hdrS;

typedef struct WinCharStruct
{
    unsigned int charWidth;
42
    long charOffset;
Alexandre Julliard's avatar
Alexandre Julliard committed
43
} WinCharS;
44

Alexandre Julliard's avatar
Alexandre Julliard committed
45 46 47 48 49 50 51 52 53 54 55
typedef struct fntFontStruct
{
    fnt_hdrS 	 	hdr;
    WinCharS 		*dfCharTable;
    unsigned char	*dfDeviceP;
    unsigned char 	*dfFaceP;
    unsigned char 	*dfBitsPointerP;
    unsigned char 	*dfBitsOffsetP;
    short 		*dfColorTableP;
} fnt_fontS;

56
#include "poppack.h"