2013-12-05 01:00:49 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS VGA Font Editor
|
2017-09-29 13:58:14 +00:00
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2013-12-05 01:00:49 +00:00
|
|
|
* PURPOSE: CPI (Code Page Information) MS-DOS-compatible Fonts
|
2013-12-05 02:19:57 +00:00
|
|
|
* We support only screen fonts, not printer fonts.
|
|
|
|
* No DR-DOS/Novell-DOS compressed font format support.
|
2017-09-29 13:58:14 +00:00
|
|
|
* COPYRIGHT: Copyright 2014 Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
2013-12-05 01:00:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CPI_H
|
|
|
|
#define __CPI_H
|
|
|
|
|
2013-12-05 02:19:57 +00:00
|
|
|
typedef struct _CPI_HEADER
|
|
|
|
{
|
|
|
|
UCHAR uId0;
|
|
|
|
UCHAR uId[7];
|
|
|
|
UCHAR uReserved[8];
|
|
|
|
USHORT uNumPtr;
|
|
|
|
UCHAR uPtrType;
|
|
|
|
ULONG uFntInfoHdrOffset;
|
|
|
|
|
|
|
|
// FIXME: Put it in another struct ??
|
|
|
|
USHORT uNumCodePages;
|
|
|
|
} CPI_HEADER, *PCPI_HEADER;
|
|
|
|
|
|
|
|
typedef struct _CPENTRY_HEADER
|
|
|
|
{
|
|
|
|
USHORT uHdrSize;
|
|
|
|
ULONG uNextCPEHOffset;
|
|
|
|
USHORT uDeviceType;
|
|
|
|
UCHAR uDeviceName[8];
|
|
|
|
USHORT uCodePage;
|
|
|
|
UCHAR uReserved[6];
|
|
|
|
ULONG uCPIHOffset;
|
|
|
|
} CPENTRY_HEADER, *PCPENTRY_HEADER;
|
|
|
|
|
|
|
|
typedef struct _CPINFO_HEADER
|
|
|
|
{
|
|
|
|
USHORT uVersion;
|
|
|
|
USHORT uNumFonts;
|
|
|
|
USHORT uSize; // uFontSize
|
|
|
|
} CPINFO_HEADER, *PCPINFO_HEADER;
|
|
|
|
|
|
|
|
typedef struct _SCRFONT_HEADER
|
|
|
|
{
|
|
|
|
UCHAR uHeight;
|
|
|
|
UCHAR uWidth;
|
|
|
|
USHORT uReserved;
|
|
|
|
USHORT uNumChars;
|
|
|
|
} SCRFONT_HEADER, *PSCRFONT_HEADER;
|
|
|
|
|
2013-12-05 01:00:49 +00:00
|
|
|
#endif
|