Class DWrite.Factory
- Namespace
- Xui.Runtime.Windows
- Assembly
- Xui.Runtime.Windows.dll
public class DWrite.Factory : COM.Unknown, IDisposable
- Inheritance
-
DWrite.Factory
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
Factory()
Factory(void*)
public Factory(void* ptr)
Parameters
ptr void*
Methods
CreateTextFormat(string, FontCollection?, FontWeight, FontStyle, FontStretch, float, string)
public DWrite.TextFormat CreateTextFormat(string fontFamilyName, DWrite.FontCollection? fontCollection, DWrite.FontWeight fontWeight, DWrite.FontStyle fontStyle, DWrite.FontStretch fontStretch, float fontSize, string localeName)
Parameters
fontFamilyName string
fontCollection DWrite.FontCollection
fontWeight DWrite.FontWeight
fontStyle DWrite.FontStyle
fontStretch DWrite.FontStretch
fontSize float
localeName string
Returns
- DWrite.TextFormat
CreateTextFormatPtr(string, FontCollection?, FontWeight, FontStyle, FontStretch, float, string)
public DWrite.TextFormat.Ptr CreateTextFormatPtr(string fontFamilyName, DWrite.FontCollection? fontCollection, DWrite.FontWeight fontWeight, DWrite.FontStyle fontStyle, DWrite.FontStretch fontStretch, float fontSize, string localeName)
Parameters
fontFamilyName string
fontCollection DWrite.FontCollection
fontWeight DWrite.FontWeight
fontStyle DWrite.FontStyle
fontStretch DWrite.FontStretch
fontSize float
localeName string
Returns
- DWrite.TextFormat.Ptr
CreateTextLayout(string, TextFormat, float, float)
public DWrite.TextLayout CreateTextLayout(string text, DWrite.TextFormat textFormat, float maxWidth, float maxHeight)
Parameters
text string
textFormat DWrite.TextFormat
maxWidth float
maxHeight float
Returns
- DWrite.TextLayout
CreateTextLayoutRef(ReadOnlySpan<char>, TextFormat, float, float)
public DWrite.TextLayout.Ref CreateTextLayoutRef(ReadOnlySpan<char> text, DWrite.TextFormat textFormat, float maxWidth, float maxHeight)
Parameters
text ReadOnlySpan<char>
textFormat DWrite.TextFormat
maxWidth float
maxHeight float
Returns
- DWrite.TextLayout.Ref
CreateTextLayoutRef(ReadOnlySpan<char>, Ptr, float, float)
public DWrite.TextLayout.Ref CreateTextLayoutRef(ReadOnlySpan<char> text, DWrite.TextFormat.Ptr textFormat, float maxWidth, float maxHeight)
Parameters
text ReadOnlySpan<char>
textFormat DWrite.TextFormat.Ptr
maxWidth float
maxHeight float
Returns
- DWrite.TextLayout.Ref
CreateTextLayoutRef(string, TextFormat, float, float)
public DWrite.TextLayout.Ref CreateTextLayoutRef(string text, DWrite.TextFormat textFormat, float maxWidth, float maxHeight)
Parameters
text string
textFormat DWrite.TextFormat
maxWidth float
maxHeight float
Returns
- DWrite.TextLayout.Ref
CreateTextLayoutRef(string, Ptr, float, float)
public DWrite.TextLayout.Ref CreateTextLayoutRef(string text, DWrite.TextFormat.Ptr textFormat, float maxWidth, float maxHeight)
Parameters
text string
textFormat DWrite.TextFormat.Ptr
maxWidth float
maxHeight float
Returns
- DWrite.TextLayout.Ref
DWriteCreateFactory(FactoryType, in Guid, out void*)
public static Types.HRESULT DWriteCreateFactory(DWrite.FactoryType factoryType, in Guid iid, out void* ppIFactory)
Parameters
factoryType DWrite.FactoryType
iid Guid
ppIFactory void*
Returns
- Types.HRESULT
GetSystemFontCollection(bool)
public DWrite.FontCollection GetSystemFontCollection(bool checkForUpdates = false)
Parameters
checkForUpdates bool
Returns
- DWrite.FontCollection
GetSystemFontCollectionRef(bool)
public DWrite.FontCollection.Ref GetSystemFontCollectionRef(bool checkForUpdates = false)
Parameters
checkForUpdates bool
Returns
- DWrite.FontCollection.Ref