Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

foncache.h File Reference

Go to the source code of this file.

Classes

struct  _FONT_IMAGE
struct  _FONT_LOW_OFFSET
struct  _FONT_HIGHLOW_OFFSET
struct  _FONT_HIGHHIGH_OFFSET
struct  _FONT_CACHE_INFORMATION
struct  _FONT_CACHE_AREA

Defines

#define FONT_MATCHED   1
#define FONT_STRETCHED   2
#define ADD_IMAGE   1
#define REPLACE_IMAGE   2
#define BITMAP_BITS_BYTE_ALIGN   8
#define BITMAP_BITS_WORD_ALIGN   16
#define BITMAP_ARRAY_BYTE   3
#define BITMAP_PLANES   1
#define BITMAP_BITS_PIXEL   1
#define BYTE_ALIGN   sizeof(BYTE)
#define WORD_ALIGN   sizeof(WORD)

Typedefs

typedef _FONT_IMAGE FONT_IMAGE
typedef _FONT_IMAGEPFONT_IMAGE
typedef _FONT_LOW_OFFSET FONT_LOW_OFFSET
typedef _FONT_LOW_OFFSETPFONT_LOW_OFFSET
typedef _FONT_HIGHLOW_OFFSET FONT_HIGHLOW_OFFSET
typedef _FONT_HIGHLOW_OFFSETPFONT_HIGHLOW_OFFSET
typedef _FONT_HIGHHIGH_OFFSET FONT_HIGHHIGH_OFFSET
typedef _FONT_HIGHHIGH_OFFSETPFONT_HIGHHIGH_OFFSET
typedef _FONT_CACHE_INFORMATION FONT_CACHE_INFORMATION
typedef _FONT_CACHE_INFORMATIONPFONT_CACHE_INFORMATION
typedef _FONT_CACHE_AREA FONT_CACHE_AREA
typedef _FONT_CACHE_AREAPFONT_CACHE_AREA

Functions

ULONG CreateFontCache (OUT PFONT_CACHE_INFORMATION *FontCache)
ULONG DestroyFontCache (IN PFONT_CACHE_INFORMATION FontCache)
ULONG GetFontImage (IN PFONT_CACHE_INFORMATION FontCache, IN WCHAR wChar, IN COORD FontSize, IN DWORD dwAlign, OUT VOID *ImageBits)
ULONG GetStretchedFontImage (IN PFONT_CACHE_INFORMATION FontCache, IN WCHAR wChar, IN COORD FontSize, IN DWORD dwAlign, OUT VOID *ImageBits)
ULONG GetFontImagePointer (IN PFONT_CACHE_INFORMATION FontCache, IN WCHAR wChar, IN COORD FontSize, OUT PFONT_IMAGE *FontImage)
ULONG SetFontImage (IN PFONT_CACHE_INFORMATION FontCache, IN WCHAR wChar, IN COORD FontSize, IN DWORD dwAlign, IN CONST VOID *ImageBits)
DWORD CalcBitmapBufferSize (IN COORD FontSize, IN DWORD dwAlign)
NTSTATUS GetExpandFontImage (PFONT_CACHE_INFORMATION FontCache, WCHAR wChar, COORD InputFontSize, COORD OutputFontSize, PWORD OutputFontImage)


Define Documentation

#define ADD_IMAGE   1
 

Definition at line 56 of file foncache.h.

#define BITMAP_ARRAY_BYTE   3
 

Definition at line 61 of file foncache.h.

#define BITMAP_BITS_BYTE_ALIGN   8
 

Definition at line 59 of file foncache.h.

Referenced by AlignCopyMemory(), and CalcBitmapBufferSize().

#define BITMAP_BITS_PIXEL   1
 

Definition at line 71 of file foncache.h.

#define BITMAP_BITS_WORD_ALIGN   16
 

Definition at line 60 of file foncache.h.

Referenced by AlignCopyMemory(), and CalcBitmapBufferSize().

#define BITMAP_PLANES   1
 

Definition at line 70 of file foncache.h.

Referenced by CalcBitmapBufferSize().

#define BYTE_ALIGN   sizeof(BYTE)
 

Definition at line 74 of file foncache.h.

Referenced by AlignCopyMemory(), CalcBitmapBufferSize(), FsgWriteToFrameBuffer(), SetRAMFont(), and SetRAMFontCodePage().

#define FONT_MATCHED   1
 

Definition at line 53 of file foncache.h.

#define FONT_STRETCHED   2
 

Definition at line 54 of file foncache.h.

#define REPLACE_IMAGE   2
 

Definition at line 57 of file foncache.h.

#define WORD_ALIGN   sizeof(WORD)
 

Definition at line 75 of file foncache.h.

Referenced by AlignCopyMemory(), FsgWriteToFrameBuffer(), SetRAMFont(), and SetRAMFontCodePage().


Typedef Documentation

typedef struct _FONT_CACHE_AREA FONT_CACHE_AREA
 

typedef struct _FONT_CACHE_INFORMATION FONT_CACHE_INFORMATION
 

typedef struct _FONT_HIGHHIGH_OFFSET FONT_HIGHHIGH_OFFSET
 

typedef struct _FONT_HIGHLOW_OFFSET FONT_HIGHLOW_OFFSET
 

typedef struct _FONT_IMAGE FONT_IMAGE
 

typedef struct _FONT_LOW_OFFSET FONT_LOW_OFFSET
 

typedef struct _FONT_CACHE_AREA * PFONT_CACHE_AREA
 

typedef struct _FONT_CACHE_INFORMATION * PFONT_CACHE_INFORMATION
 

Referenced by SetRAMFontCodePage().

typedef struct _FONT_HIGHHIGH_OFFSET * PFONT_HIGHHIGH_OFFSET
 

typedef struct _FONT_HIGHLOW_OFFSET * PFONT_HIGHLOW_OFFSET
 

typedef struct _FONT_IMAGE * PFONT_IMAGE
 

Referenced by FE_WriteRegionToScreenHW().

typedef struct _FONT_LOW_OFFSET * PFONT_LOW_OFFSET
 


Function Documentation

DWORD CalcBitmapBufferSize IN COORD  FontSize,
IN DWORD  dwAlign
 

Definition at line 41 of file fullscr/vga/foncache.c.

References BITMAP_BITS_BYTE_ALIGN, BITMAP_BITS_WORD_ALIGN, BITMAP_PLANES, BYTE_ALIGN, CALC_BITMAP_BITS_FOR_X, and DWORD.

Referenced by AlignCopyMemory(), FsgWriteToFrameBuffer(), SetRAMFont(), and SetRAMFontCodePage().

00045 { 00046 DWORD uiCount; 00047 00048 uiCount = CALC_BITMAP_BITS_FOR_X(FontSize.X, 00049 (dwAlign==BYTE_ALIGN ? BITMAP_BITS_BYTE_ALIGN : BITMAP_BITS_WORD_ALIGN)); 00050 uiCount = uiCount * BITMAP_PLANES * FontSize.Y; 00051 return uiCount; 00052 }

ULONG CreateFontCache OUT PFONT_CACHE_INFORMATION FontCache  ) 
 

Referenced by SetRAMFontCodePage().

ULONG DestroyFontCache IN PFONT_CACHE_INFORMATION  FontCache  ) 
 

Referenced by AbortCreateConsole(), and DestroyWindowsWindow().

NTSTATUS GetExpandFontImage PFONT_CACHE_INFORMATION  FontCache,
WCHAR  wChar,
COORD  InputFontSize,
COORD  OutputFontSize,
PWORD  OutputFontImage
 

Referenced by SetRAMFont(), and SetRAMFontCodePage().

ULONG GetFontImage IN PFONT_CACHE_INFORMATION  FontCache,
IN WCHAR  wChar,
IN COORD  FontSize,
IN DWORD  dwAlign,
OUT VOID *  ImageBits
 

Referenced by SetRAMFont().

ULONG GetFontImagePointer IN PFONT_CACHE_INFORMATION  FontCache,
IN WCHAR  wChar,
IN COORD  FontSize,
OUT PFONT_IMAGE FontImage
 

Referenced by FE_WriteRegionToScreenHW().

ULONG GetStretchedFontImage IN PFONT_CACHE_INFORMATION  FontCache,
IN WCHAR  wChar,
IN COORD  FontSize,
IN DWORD  dwAlign,
OUT VOID *  ImageBits
 

ULONG SetFontImage IN PFONT_CACHE_INFORMATION  FontCache,
IN WCHAR  wChar,
IN COORD  FontSize,
IN DWORD  dwAlign,
IN CONST VOID *  ImageBits
 

Referenced by SetRAMFont(), and SetRAMFontCodePage().


Generated on Sat May 15 19:43:44 2004 for test by doxygen 1.3.7