mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 14:19:25 +00:00
064ee89a12
Remove the legacy directory.rbuild file. [VGAFONTEDIT] - Add necessary headers definitions for CPI font files. - Add some (unused for now) PSFv1 definitions. - Add a (unused for now) VGAFONT structure that defines whether the font is stored as RAW, CPI or PSF. svn path=/trunk/; revision=61227
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
/*
|
|
* PROJECT: ReactOS VGA Font Editor
|
|
* LICENSE: GNU General Public License Version 2.0 or any later version
|
|
* FILE: devutils/vgafontedit/cpi.h
|
|
* PURPOSE: CPI (Code Page Information) MS-DOS-compatible Fonts
|
|
* We support only screen fonts, not printer fonts.
|
|
* No DR-DOS/Novell-DOS compressed font format support.
|
|
* COPYRIGHT: Copyright 2014 Hermes Belusca-Maito <hermes.belusca@sfr.fr>
|
|
*/
|
|
|
|
#ifndef __CPI_H
|
|
#define __CPI_H
|
|
|
|
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;
|
|
|
|
#endif
|