Method CreateTextFormat
- Namespace
- PaintDotNet.DirectWrite
- Assembly
- PaintDotNet.Windows.Core.dll
CreateTextFormat(IDirectWriteFactory, in FontProperties, float, IFontCollection?, string?)
public static ITextFormat CreateTextFormat(this IDirectWriteFactory factory, in FontProperties fontProperties, float dipSize, IFontCollection? fontCollection = null, string? localeName = null)
Parameters
factory
IDirectWriteFactoryfontProperties
FontPropertiesdipSize
floatfontCollection
IFontCollectionlocaleName
string
Returns
CreateTextFormat(IDirectWriteFactory, in SizedFontProperties, IFontCollection?, string?)
public static ITextFormat CreateTextFormat(this IDirectWriteFactory factory, in SizedFontProperties fontProperties, IFontCollection? fontCollection = null, string? localeName = null)
Parameters
factory
IDirectWriteFactoryfontProperties
SizedFontPropertiesfontCollection
IFontCollectionlocaleName
string