TextShaperOptions(IGlyphTypeface, IReadOnlyList<FontFeature>, Double, SByte, CultureInfo, Double, Double) Constructor
Initializes a new instance of the TextShaperOptions class
Definition
Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public TextShaperOptions(
IGlyphTypeface typeface,
IReadOnlyList<FontFeature>? fontFeatures,
double fontRenderingEmSize = 12,
sbyte bidiLevel = 0,
CultureInfo? culture = null,
double incrementalTabWidth = 0,
double letterSpacing = 0
)
Public Sub New (
typeface As IGlyphTypeface,
fontFeatures As IReadOnlyList(Of FontFeature),
Optional fontRenderingEmSize As Double = 12,
Optional bidiLevel As SByte = 0,
Optional culture As CultureInfo = Nothing,
Optional incrementalTabWidth As Double = 0,
Optional letterSpacing As Double = 0
)
new :
typeface : IGlyphTypeface *
fontFeatures : IReadOnlyList<FontFeature> *
?fontRenderingEmSize : float *
?bidiLevel : sbyte *
?culture : CultureInfo *
?incrementalTabWidth : float *
?letterSpacing : float
(* Defaults:
let _fontRenderingEmSize = defaultArg fontRenderingEmSize 12
let _bidiLevel = defaultArg bidiLevel 0
let _culture = defaultArg culture null
let _incrementalTabWidth = defaultArg incrementalTabWidth 0
let _letterSpacing = defaultArg letterSpacing 0
*)
-> TextShaperOptions
Parameters
- IGlyphTypeface
- IReadOnlyList(FontFeature)
- Double (Optional)
- SByte (Optional)
- CultureInfo (Optional)
- Double (Optional)
- Double (Optional)
See Also
Reference
TextShaperOptions Structure
TextShaperOptions Overload
Avalonia.Media.TextFormatting Namespace