Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.61 KB

nf-dwrite-idwritefactory-createcustomfontfilereference.md

File metadata and controls

98 lines (73 loc) · 3.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dwrite.IDWriteFactory.CreateCustomFontFileReference
IDWriteFactory::CreateCustomFontFileReference (dwrite.h)
Creates a reference to an application-specific font file resource.
CreateCustomFontFileReference
CreateCustomFontFileReference method [Direct Write]
CreateCustomFontFileReference method [Direct Write]
IDWriteFactory interface
IDWriteFactory interface [Direct Write]
CreateCustomFontFileReference method
IDWriteFactory.CreateCustomFontFileReference
IDWriteFactory::CreateCustomFontFileReference
directwrite.IDWriteFactory_CreateCustomFontFileReference
dwrite/IDWriteFactory::CreateCustomFontFileReference
directwrite\IDWriteFactory_CreateCustomFontFileReference.htm
DirectWrite
1c82ffcd-3e43-47cd-9a6c-ff8bd1d2625f
12/05/2018
CreateCustomFontFileReference, CreateCustomFontFileReference method [Direct Write], CreateCustomFontFileReference method [Direct Write],IDWriteFactory interface, IDWriteFactory interface [Direct Write],CreateCustomFontFileReference method, IDWriteFactory.CreateCustomFontFileReference, IDWriteFactory::CreateCustomFontFileReference, directwrite.IDWriteFactory_CreateCustomFontFileReference, dwrite/IDWriteFactory::CreateCustomFontFileReference
dwrite.h
Windows
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps \| UWP apps]
Dwrite.lib
Dwrite.dll
Windows
19H1
IDWriteFactory::CreateCustomFontFileReference
dwrite/IDWriteFactory::CreateCustomFontFileReference
c++
APIRef
kbSyntax
COM
dwrite.dll
IDWriteFactory.CreateCustomFontFileReference

IDWriteFactory::CreateCustomFontFileReference

-description

Creates a reference to an application-specific font file resource.

-parameters

-param fontFileReferenceKey [in]

Type: const void*

A font file reference key that uniquely identifies the font file resource during the lifetime of fontFileLoader.

-param fontFileReferenceKeySize

Type: UINT32

The size of the font file reference key in bytes.

-param fontFileLoader

Type: IDWriteFontFileLoader*

The font file loader that will be used by the font system to load data from the file identified by fontFileReferenceKey.

-param fontFile [out]

Type: IDWriteFontFile**

Contains an address of a pointer to the newly created font file object when this method succeeds, or NULL in case of failure.

-returns

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

This function is provided for cases when an application or a document needs to use a private font without having to install it on the system. fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call.

-see-also

IDWriteFactory