[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextAnalyzer1

TextAnalyzer1 Class

IDWriteTextAnalyzer1

Inheritance
TextAnalyzer1
Implements
Namespace: C1.Util.DX.DirectWrite
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("80DAD800-E21F-4E83-96CE-BFCCE500DB7C")]
public class TextAnalyzer1 : TextAnalyzer, IDisposable, IUnknown

Constructors

Name Description
TextAnalyzer1(IntPtr)

Initializes a new instance of the TextAnalyzer1 class.

Methods

Name Description
AnalyzeVerticalGlyphOrientation(TextAnalysisSource1, int, int, TextAnalysisSink1)

Analyzes a text range for script orientation, reading text and attributes from the source and reporting results to the sink.

AnalyzeVerticalGlyphOrientation(IntPtr, int, int, IntPtr)

HRESULT IDWriteTextAnalyzer1::AnalyzeVerticalGlyphOrientation([In] IDWriteTextAnalysisSource1* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink1* analysisSink)

ApplyCharacterSpacing(float, float, float, int, int, short[], float[], GlyphOffset[], ShapingGlyphProperties[], float[], GlyphOffset[])

HRESULT 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)

GetBaseline(FontFace, Baseline, Bool, Bool, ScriptAnalysis, string, out int, out Bool)

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)

GetGlyphOrientationTransform(GlyphOrientationAngle, Bool, out Matrix3x2)

HRESULT IDWriteTextAnalyzer1::GetGlyphOrientationTransform([In] DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,[In] BOOL isSideways,[Out] DWRITE_MATRIX* transform)

GetJustificationOpportunities(FontFace, float, ScriptAnalysis, int, int, string, short[], ShapingGlyphProperties[], 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)

GetJustificationOpportunities(IntPtr, float, ScriptAnalysis, int, int, IntPtr, IntPtr, IntPtr, IntPtr)

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)

GetJustifiedGlyphs(FontFace, float, ScriptAnalysis, int, int, int, short[], short[], float[], float[], GlyphOffset[], ShapingGlyphProperties[], int, short[], short[], float[], GlyphOffset[])

HRESULT 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)

GetScriptProperties(ScriptAnalysis, out ScriptProperties)

HRESULT IDWriteTextAnalyzer1::GetScriptProperties([In] DWRITE_SCRIPT_ANALYSIS scriptAnalysis,[Out] DWRITE_SCRIPT_PROPERTIES* scriptProperties)

GetTextComplexity(string, int, FontFace, out Bool, int, short[])

HRESULT 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)

JustifyGlyphAdvances(float, int, JustificationOpportunity[], float[], GlyphOffset[], float[], 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)

JustifyGlyphAdvances(float, int, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr)

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)

Operators

Name Description
explicit operator TextAnalyzer1(IntPtr)

Performs an explicit conversion from IntPtr to TextAnalyzer1.