[]
IDWriteTextAnalyzer1
[Guid("80DAD800-E21F-4E83-96CE-BFCCE500DB7C")]
public class TextAnalyzer1 : TextAnalyzer, IDisposable, IUnknown
Initializes a new instance of the TextAnalyzer1 class.
public TextAnalyzer1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Analyzes a text range for script orientation, reading text and attributes from the source and reporting results to the sink.
public void AnalyzeVerticalGlyphOrientation(ITextAnalysisSource1 analysisSource, int textPosition, int textLength, ITextAnalysisSink1 analysisSink)
analysisSource
ITextAnalysisSource1Source object to analyze.
textPosition
intStarting position within the source object.
textLength
intLength to analyze.
analysisSink
ITextAnalysisSink1Length to analyze.
HRESULT IDWriteTextAnalyzer1::AnalyzeVerticalGlyphOrientation([In] IDWriteTextAnalysisSource1* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink1* analysisSink)
public void AnalyzeVerticalGlyphOrientation(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
analysisSource
System.IntPtrtextPosition
inttextLength
intanalysisSink
System.IntPtrHRESULT IDWriteTextAnalyzer1::ApplyCharacterSpacing([In] float leadingSpacing,[In] float trailingSpacing,[In] float minimumAdvanceWidth,[In] unsigned int textLength,[In] unsigned int glyphCount,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] const float* glyphAdvances,[In, Buffer] const DWRITE_GLYPH_OFFSET* glyphOffsets,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProperties,[Out, Buffer] float* modifiedGlyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets)
public void ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, int textLength, int glyphCount, short[] clusterMap, float[] glyphAdvances, GlyphOffset[] glyphOffsets, ShapingGlyphProperties[] glyphProperties, float[] modifiedGlyphAdvances, GlyphOffset[] modifiedGlyphOffsets)
leadingSpacing
floattrailingSpacing
floatminimumAdvanceWidth
floattextLength
intglyphCount
intclusterMap
short[]glyphAdvances
float[]glyphOffsets
GlyphOffset[]glyphProperties
ShapingGlyphProperties[]modifiedGlyphAdvances
float[]modifiedGlyphOffsets
GlyphOffset[]HRESULT IDWriteTextAnalyzer1::GetBaseline([In] IDWriteFontFace* fontFace,[In] DWRITE_BASELINE baseline,[In] BOOL isVertical,[In] BOOL isSimulationAllowed,[In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[In, Optional] const wchar_t* localeName,[Out] int* baselineCoordinate,[Out] BOOL* exists)
public void GetBaseline(FontFace fontFace, Baseline baseline, Bool isVertical, Bool isSimulationAllowed, ScriptAnalysis scriptAnalysis, string localeName, out int baselineCoordinate, out Bool exists)
fontFace
FontFacebaseline
BaselineisVertical
BoolisSimulationAllowed
BoolscriptAnalysis
ScriptAnalysislocaleName
stringbaselineCoordinate
intexists
BoolHRESULT IDWriteTextAnalyzer1::GetGlyphOrientationTransform([In] DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,[In] BOOL isSideways,[Out] DWRITE_MATRIX* transform)
public void GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool isSideways, out Matrix3x2 transform)
glyphOrientationAngle
GlyphOrientationAngleisSideways
Booltransform
Matrix3x2HRESULT IDWriteTextAnalyzer1::GetJustificationOpportunities([In, Optional] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[In] unsigned int textLength,[In] unsigned int glyphCount,[In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProperties,[Out, Buffer] DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities)
public void GetJustificationOpportunities(FontFace fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, string textString, short[] clusterMap, ShapingGlyphProperties[] glyphProperties, JustificationOpportunity[] justificationOpportunities)
fontFace
FontFacefontEmSize
floatscriptAnalysis
ScriptAnalysistextLength
intglyphCount
inttextString
stringclusterMap
short[]glyphProperties
ShapingGlyphProperties[]justificationOpportunities
JustificationOpportunity[]HRESULT IDWriteTextAnalyzer1::GetJustificationOpportunities([In, Optional] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[In] unsigned int textLength,[In] unsigned int glyphCount,[In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProperties,[Out, Buffer] DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities)
public void GetJustificationOpportunities(IntPtr fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, IntPtr textString, IntPtr clusterMap, IntPtr glyphProperties, IntPtr justificationOpportunities)
fontFace
System.IntPtrfontEmSize
floatscriptAnalysis
ScriptAnalysistextLength
intglyphCount
inttextString
System.IntPtrclusterMap
System.IntPtrglyphProperties
System.IntPtrjustificationOpportunities
System.IntPtrHRESULT IDWriteTextAnalyzer1::GetJustifiedGlyphs([In, Optional] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[In] unsigned int textLength,[In] unsigned int glyphCount,[In] unsigned int maxGlyphCount,[In, Buffer, Optional] const unsigned short* clusterMap,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer] const float* glyphAdvances,[In, Buffer] const float* justifiedGlyphAdvances,[In, Buffer] const DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProperties,[In] unsigned int* actualGlyphCount,[Out, Buffer, Optional] unsigned short* modifiedClusterMap,[Out, Buffer] unsigned short* modifiedGlyphIndices,[Out, Buffer] float* modifiedGlyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets)
public void GetJustifiedGlyphs(FontFace fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, int maxGlyphCount, short[] clusterMap, short[] glyphIndices, float[] glyphAdvances, float[] justifiedGlyphAdvances, GlyphOffset[] justifiedGlyphOffsets, ShapingGlyphProperties[] glyphProperties, int actualGlyphCount, short[] modifiedClusterMap, short[] modifiedGlyphIndices, float[] modifiedGlyphAdvances, GlyphOffset[] modifiedGlyphOffsets)
fontFace
FontFacefontEmSize
floatscriptAnalysis
ScriptAnalysistextLength
intglyphCount
intmaxGlyphCount
intclusterMap
short[]glyphIndices
short[]glyphAdvances
float[]justifiedGlyphAdvances
float[]justifiedGlyphOffsets
GlyphOffset[]glyphProperties
ShapingGlyphProperties[]actualGlyphCount
intmodifiedClusterMap
short[]modifiedGlyphIndices
short[]modifiedGlyphAdvances
float[]modifiedGlyphOffsets
GlyphOffset[]HRESULT IDWriteTextAnalyzer1::GetScriptProperties([In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[Out] DWRITE_SCRIPT_PROPERTIES* scriptProperties)
public void GetScriptProperties(ScriptAnalysis scriptAnalysis, out ScriptProperties scriptProperties)
scriptAnalysis
ScriptAnalysisscriptProperties
ScriptPropertiesHRESULT IDWriteTextAnalyzer1::GetTextComplexity([In, Buffer] const wchar_t* textString,[In] unsigned int textLength,[In] IDWriteFontFace* fontFace,[Out] BOOL* isTextSimple,[In] unsigned int* textLengthRead,[Out, Buffer, Optional] unsigned short* glyphIndices)
public void GetTextComplexity(string textString, int textLength, FontFace fontFace, out Bool isTextSimple, int textLengthRead, short[] glyphIndices)
textString
stringtextLength
intfontFace
FontFaceisTextSimple
BooltextLengthRead
intglyphIndices
short[]HRESULT IDWriteTextAnalyzer1::JustifyGlyphAdvances([In] float lineWidth,[In] unsigned int glyphCount,[In, Buffer] const DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities,[In, Buffer] const float* glyphAdvances,[In, Buffer] const DWRITE_GLYPH_OFFSET* glyphOffsets,[Out, Buffer] float* justifiedGlyphAdvances,[Out, Buffer, Optional] DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets)
public void JustifyGlyphAdvances(float lineWidth, int glyphCount, JustificationOpportunity[] justificationOpportunities, float[] glyphAdvances, GlyphOffset[] glyphOffsets, float[] justifiedGlyphAdvances, GlyphOffset[] justifiedGlyphOffsets)
lineWidth
floatglyphCount
intjustificationOpportunities
JustificationOpportunity[]glyphAdvances
float[]glyphOffsets
GlyphOffset[]justifiedGlyphAdvances
float[]justifiedGlyphOffsets
GlyphOffset[]HRESULT IDWriteTextAnalyzer1::JustifyGlyphAdvances([In] float lineWidth,[In] unsigned int glyphCount,[In, Buffer] const DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities,[In, Buffer] const float* glyphAdvances,[In, Buffer] const DWRITE_GLYPH_OFFSET* glyphOffsets,[Out, Buffer] float* justifiedGlyphAdvances,[Out, Buffer, Optional] DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets)
public void JustifyGlyphAdvances(float lineWidth, int glyphCount, IntPtr justificationOpportunities, IntPtr glyphAdvances, IntPtr glyphOffsets, IntPtr justifiedGlyphAdvances, IntPtr justifiedGlyphOffsets)
lineWidth
floatglyphCount
intjustificationOpportunities
System.IntPtrglyphAdvances
System.IntPtrglyphOffsets
System.IntPtrjustifiedGlyphAdvances
System.IntPtrjustifiedGlyphOffsets
System.IntPtrPerforms an explicit conversion from System.IntPtr to TextAnalyzer1.
public static explicit operator TextAnalyzer1(IntPtr nativePointer)
nativePointer
System.IntPtr