Hardware Dev Center

Expand Minimize

EngFntCacheAlloc function

The EngFntCacheAlloc function allocates storage for a font that is to be stored in cached memory.

Syntax


PVOID EngFntCacheAlloc(
  _In_ ULONG FastCheckSum,
  _In_ ULONG ulSize
);

Parameters

FastCheckSum [in]

Specifies the checksum for the font.

ulSize [in]

Specifies the number of bytes of storage to allocate.

Return value

On success, this function returns the address of the cache of font data. Otherwise, it returns NULL.

Remarks

When the font driver calls this function, the font engine allocates memory in which the font driver stores font data.

The font engine calls the font driver's DrvLoadFontFile entry point when a font file is first loaded. It is in this call that the font driver receives a value for FastCheckSum, which it subsequently uses when it calls this function.

Requirements

Target platform

Universal

Version

This function is available in Windows XP and later.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngFntCacheFault
EngFntCacheLookUp
DrvLoadFontFile

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft