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
FontFaceThe font face to read glyph information from.
scriptAnalysis
ScriptAnalysisThe script analysis for the script or font to check.
localeName
stringThe locale name to check.
featureTag
FontFeatureTagThe font feature tag to check.
glyphCount
intThe 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
GlyphOrientationAngleNo documentation.
isSideways
RawBoolNo documentation.
originX
floatNo documentation.
originY
floatNo documentation.
transform
RawMatrix3x2No 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
FontFaceThe font face to get features from.
scriptAnalysis
ScriptAnalysisThe script analysis for the script or font to check.
localeName
stringThe locale name to check.
maxTagCount
intThe maximum number of tags to return.
actualTagCount
intThe 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