IDWriteFactory Interface
Used to create all subsequent DirectWrite objects. This interface is the root factory interface for all DirectWrite objects.
Mitglieder
IDWriteFactorySchnittstelle erbt von der IUnknown-Schnittstelle. IDWriteFactory umfasst auch die folgenden Typen von Mitgliedern:
- Methoden
Methoden
IDWriteFactorySchnittstelle umfasst die folgenden Methoden.
Methode | Beschreibung |
---|---|
CreateCustomFontCollection | Creates a font collection, using a custom font collection loader. |
CreateCustomFontFileReference | Creates a reference to an application-specific font file resource. |
CreateCustomRenderingParams | Creates a rendering-parameters object with the specified properties. |
CreateEllipsisTrimmingSign | Creates an inline object for trimming, using an ellipsis as the omission sign. |
CreateFontFace | Creates an object that represents a font face. |
CreateFontFileReference | Creates a font file reference object from a local font file. |
CreateGdiCompatibleTextLayout | Produces an object representing the result of a given string, format, and associated constraints, formatted for a particular display resolution and measuring mode. |
CreateGlyphRunAnalysis | Creates a glyph run analysis object, which encapsulates information used to render a glyph run. |
CreateMonitorRenderingParams | Creates a rendering-parameters object, with default settings for the specified monitor. |
CreateNumberSubstitution | Creates a number-substitution object, using a locale name, substitution method, and whether to ignore user overrides (use NLS defaults for the given culture instead). |
CreateRenderingParams | Creates a rendering-parameters object, with default settings for the primary monitor. |
CreateTextAnalyzer | Returns an interface with which to perform text analysis. |
CreateTextFormat | Creates a text format object used for text layout. |
CreateTextLayout | Produces an object that represents the fully analyzed and formatted result of a string, text format, and associated constraints. |
CreateTypography | Creates a typography object used in conjunction with text format for text layout. |
GetGdiInterop | Creates an object that is used for interoperability with GDI. |
GetSystemFontCollection | Gets an object that represents the set of installed fonts. |
RegisterFontCollectionLoader | Registers a custom font-collection loader with the factory object. |
RegisterFontFileLoader | Registers a font file loader with DirectWrite. |
UnregisterFontCollectionLoader | Unregisters a custom font-collection loader that was previously registered using RegisterFontCollectionLoader. |
UnregisterFontFileLoader | Unregisters a font file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader. |
Hinweise
Create an IDWriteFactory object by using the DWriteCreateFactory function.
if (SUCCEEDED(hr))
{
hr = DWriteCreateFactory(
DWRITE_FACTORY_TYPE_SHARED,
__uuidof(IDWriteFactory),
reinterpret_cast<IUnknown**>(&pDWriteFactory_)
);
}
An IDWriteFactory object holds state information, such as font loader registration and cached font data. This state can be shared or isolated. Shared is recommended for most applications because it saves memory. However, isolated can be useful in situations where you want to have a separate state for some objects.
Anforderungen
Mindestens unterstützter Client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 |
Header |
Dwrite.h |
Bibliothek |
Dwrite.lib |
DLL |
Dwrite.dll |