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
factoryIDirectWriteFactoryfontPropertiesFontPropertiesdipSizefloatfontCollectionIFontCollectionlocaleNamestring
Returns
CreateTextFormat(IDirectWriteFactory, SizedFontProperties, IFontCollection?, string?)
public static ITextFormat CreateTextFormat(this IDirectWriteFactory factory, SizedFontProperties fontProperties, IFontCollection? fontCollection = null, string? localeName = null)
Parameters
factoryIDirectWriteFactoryfontPropertiesSizedFontPropertiesfontCollectionIFontCollectionlocaleNamestring