Table of Contents

Class TextAnalyzer2

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll
[Guid("553A9FF3-5693-4DF7-B52B-74806F7F2EB9")]
public class TextAnalyzer2 : TextAnalyzer1
Inheritance
TextAnalyzer2
Inherited Members

Constructors

TextAnalyzer2(nint)

public TextAnalyzer2(nint nativePtr)

Parameters

nativePtr nint

Methods

CheckTypographicFeature(FontFace, ScriptAnalysis, string, FontFeatureTag, int, short[], byte[])

Checks if a typographic feature is available for a glyph or a set of glyphs.

public void CheckTypographicFeature(FontFace fontFace, ScriptAnalysis scriptAnalysis, string localeName, FontFeatureTag featureTag, int glyphCount, short[] glyphIndices, byte[] featureApplies)

Parameters

fontFace FontFace

The font face to read glyph information from.

scriptAnalysis ScriptAnalysis

The script analysis for the script or font to check.

localeName string

The locale name to check.

featureTag FontFeatureTag

The font feature tag to check.

glyphCount int

The number of glyphs to check.

glyphIndices short[]

An array of glyph indices to check.

featureApplies byte[]

An array of integers that indicate whether or not the font feature applies to each glyph specified.

GetGlyphOrientationTransform(GlyphOrientationAngle, RawBool, float, float, out RawMatrix3x2)

Returns 2x3 transform matrix for the respective angle to draw the glyph run.

Extends IDWriteTextAnalyzer1::GetGlyphOrientationTransform to pass valid values for the baseline origin rather than zeroes.

public void GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, RawBool isSideways, float originX, float originY, out RawMatrix3x2 transform)

Parameters

glyphOrientationAngle GlyphOrientationAngle

No documentation.

isSideways RawBool

No documentation.

originX float

No documentation.

originY float

No documentation.

transform RawMatrix3x2

No documentation.

GetTypographicFeatures(FontFace, ScriptAnalysis, string, int, out int, FontFeatureTag[])

Returns a complete list of OpenType features available for a script or font. If a feature is partially supported, then this method indicates that it is supported.

public void GetTypographicFeatures(FontFace fontFace, ScriptAnalysis scriptAnalysis, string localeName, int maxTagCount, out int actualTagCount, FontFeatureTag[] tags)

Parameters

fontFace FontFace

The font face to get features from.

scriptAnalysis ScriptAnalysis

The script analysis for the script or font to check.

localeName string

The locale name to check.

maxTagCount int

The maximum number of tags to return.

actualTagCount int

The actual number of tags returned.

tags FontFeatureTag[]

An array of OpenType font feature tags.

Operators

explicit operator TextAnalyzer2(nint)

public static explicit operator TextAnalyzer2(nint nativePtr)

Parameters

nativePtr nint

Returns

TextAnalyzer2