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