Method CreateTextFormat
- Namespace
- PaintDotNet.DirectWrite
- Assembly
- PaintDotNet.Windows.dll
CreateTextFormat(string, IFontCollection?, FontWeight, FontStyle, FontStretch, float, string?)
Creates a text format object used for text layout.
ITextFormat CreateTextFormat(string fontFamilyName, IFontCollection? fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, string? localeName = null)
Parameters
fontFamilyName
stringfontCollection
IFontCollectionfontWeight
FontWeightfontStyle
FontStylefontStretch
FontStretchfontSize
floatlocaleName
string