Szerkesztés

IDWriteFactory5::AnalyzeContainerType method (dwrite_3.h)

The AnalyzeContainerType method analyzes the specified file data to determine whether it is a known font container format (e.g., WOFF or WOFF2).

Syntax

DWRITE_CONTAINER_TYPE AnalyzeContainerType(
  [in] void const *fileData,
       UINT32     fileDataSize
);

Parameters

[in] fileData

Type: void

Pointer to the file data to analyze.

fileDataSize

Type: UINT32

Size of the buffer passed in fileData.

Return value

Type: DWRITE_CONTAINER_TYPE

Returns the container type if recognized. DWRITE_CONTAINER_TYPE_UNKOWNN is returned for all other files, including uncompressed font files.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 15063
Minimum supported server Windows 10 Build 15063
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

IDWriteFactory5