Table of Contents

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 IDirectWriteFactory
fontProperties FontProperties
dipSize float
fontCollection IFontCollection
localeName string

Returns

ITextFormat

CreateTextFormat(IDirectWriteFactory, in SizedFontProperties, IFontCollection?, string?)

public static ITextFormat CreateTextFormat(this IDirectWriteFactory factory, in SizedFontProperties fontProperties, IFontCollection? fontCollection = null, string? localeName = null)

Parameters

factory IDirectWriteFactory
fontProperties SizedFontProperties
fontCollection IFontCollection
localeName string

Returns

ITextFormat