[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.TextAnalyzer1

Class TextAnalyzer1

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteTextAnalyzer1

[Guid("80DAD800-E21F-4E83-96CE-BFCCE500DB7C")]
public class TextAnalyzer1 : TextAnalyzer, IDisposable, IUnknown
Inheritance
object
TextAnalyzer1
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

TextAnalyzer1(IntPtr)

Initializes a new instance of the TextAnalyzer1 class.

public TextAnalyzer1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

AnalyzeVerticalGlyphOrientation(ITextAnalysisSource1, int, int, ITextAnalysisSink1)

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)

Parameters

analysisSource ITextAnalysisSource1

Source object to analyze.

textPosition int

Starting position within the source object.

textLength int

Length to analyze.

analysisSink ITextAnalysisSink1

Length to analyze.

AnalyzeVerticalGlyphOrientation(IntPtr, int, int, IntPtr)

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)

Parameters

analysisSource System.IntPtr
textPosition int
textLength int
analysisSink System.IntPtr

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)

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)

Parameters

leadingSpacing float
trailingSpacing float
minimumAdvanceWidth float
textLength int
glyphCount int
clusterMap short[]
glyphAdvances float[]
glyphOffsets GlyphOffset[]
glyphProperties ShapingGlyphProperties[]
modifiedGlyphAdvances float[]
modifiedGlyphOffsets GlyphOffset[]

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)

public void GetBaseline(FontFace fontFace, Baseline baseline, Bool isVertical, Bool isSimulationAllowed, ScriptAnalysis scriptAnalysis, string localeName, out int baselineCoordinate, out Bool exists)

Parameters

fontFace FontFace
baseline Baseline
isVertical Bool
isSimulationAllowed Bool
scriptAnalysis ScriptAnalysis
localeName string
baselineCoordinate int
exists Bool

GetGlyphOrientationTransform(GlyphOrientationAngle, Bool, out Matrix3x2)

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

Parameters

glyphOrientationAngle GlyphOrientationAngle
isSideways Bool
transform Matrix3x2

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)

public void GetJustificationOpportunities(FontFace fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, string textString, short[] clusterMap, ShapingGlyphProperties[] glyphProperties, JustificationOpportunity[] justificationOpportunities)

Parameters

fontFace FontFace
fontEmSize float
scriptAnalysis ScriptAnalysis
textLength int
glyphCount int
textString string
clusterMap short[]
glyphProperties ShapingGlyphProperties[]
justificationOpportunities JustificationOpportunity[]

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)

public void GetJustificationOpportunities(IntPtr fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, IntPtr textString, IntPtr clusterMap, IntPtr glyphProperties, IntPtr justificationOpportunities)

Parameters

fontFace System.IntPtr
fontEmSize float
scriptAnalysis ScriptAnalysis
textLength int
glyphCount int
textString System.IntPtr
clusterMap System.IntPtr
glyphProperties System.IntPtr
justificationOpportunities System.IntPtr

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)

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)

Parameters

fontFace FontFace
fontEmSize float
scriptAnalysis ScriptAnalysis
textLength int
glyphCount int
maxGlyphCount int
clusterMap short[]
glyphIndices short[]
glyphAdvances float[]
justifiedGlyphAdvances float[]
justifiedGlyphOffsets GlyphOffset[]
glyphProperties ShapingGlyphProperties[]
actualGlyphCount int
modifiedClusterMap short[]
modifiedGlyphIndices short[]
modifiedGlyphAdvances float[]
modifiedGlyphOffsets GlyphOffset[]

GetScriptProperties(ScriptAnalysis, out ScriptProperties)

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

public void GetScriptProperties(ScriptAnalysis scriptAnalysis, out ScriptProperties scriptProperties)

Parameters

scriptAnalysis ScriptAnalysis
scriptProperties 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)

public void GetTextComplexity(string textString, int textLength, FontFace fontFace, out Bool isTextSimple, int textLengthRead, short[] glyphIndices)

Parameters

textString string
textLength int
fontFace FontFace
isTextSimple Bool
textLengthRead int
glyphIndices short[]

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)

public void JustifyGlyphAdvances(float lineWidth, int glyphCount, JustificationOpportunity[] justificationOpportunities, float[] glyphAdvances, GlyphOffset[] glyphOffsets, float[] justifiedGlyphAdvances, GlyphOffset[] justifiedGlyphOffsets)

Parameters

lineWidth float
glyphCount int
justificationOpportunities JustificationOpportunity[]
glyphAdvances float[]
glyphOffsets GlyphOffset[]
justifiedGlyphAdvances float[]
justifiedGlyphOffsets GlyphOffset[]

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)

public void JustifyGlyphAdvances(float lineWidth, int glyphCount, IntPtr justificationOpportunities, IntPtr glyphAdvances, IntPtr glyphOffsets, IntPtr justifiedGlyphAdvances, IntPtr justifiedGlyphOffsets)

Parameters

lineWidth float
glyphCount int
justificationOpportunities System.IntPtr
glyphAdvances System.IntPtr
glyphOffsets System.IntPtr
justifiedGlyphAdvances System.IntPtr
justifiedGlyphOffsets System.IntPtr

Operators

explicit operator TextAnalyzer1(IntPtr)

Performs an explicit conversion from System.IntPtr to TextAnalyzer1.

public static explicit operator TextAnalyzer1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

TextAnalyzer1