Table of Contents

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

Returns

ITextFormat

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

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

Parameters

factory IDirectWriteFactory
fontProperties SizedFontProperties
fontCollection IFontCollection
localeName string

Returns

ITextFormat