# C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustificationOpportunities_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities*">GetJustificationOpportunities Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustificationOpportunities_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustificationOpportunities_C1_Util_DX_DirectWrite_FontFace_System_Single_C1_Util_DX_DirectWrite_ScriptAnalysis_System_Int32_System_Int32_System_String_System_Int16___C1_Util_DX_DirectWrite_ShapingGlyphProperties___C1_Util_DX_DirectWrite_JustificationOpportunity___" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities(C1.Util.DX.DirectWrite.FontFace,System.Single,C1.Util.DX.DirectWrite.ScriptAnalysis,System.Int32,System.Int32,System.String,System.Int16[],C1.Util.DX.DirectWrite.ShapingGlyphProperties[],C1.Util.DX.DirectWrite.JustificationOpportunity[])">GetJustificationOpportunities(FontFace, float, ScriptAnalysis, int, int, string, short[], ShapingGlyphProperties[], JustificationOpportunity[])</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetJustificationOpportunities(FontFace fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, string textString, short[] clusterMap, ShapingGlyphProperties[] glyphProperties, JustificationOpportunity[] justificationOpportunities)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetJustificationOpportunities(fontFace As FontFace, fontEmSize As Single, scriptAnalysis As ScriptAnalysis, textLength As Integer, glyphCount As Integer, textString As String, clusterMap As Short(), glyphProperties As ShapingGlyphProperties(), justificationOpportunities As JustificationOpportunity())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFace.html">FontFace</a></td>
      <td><span class="parametername">fontFace</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">fontEmSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.ScriptAnalysis.html">ScriptAnalysis</a></td>
      <td><span class="parametername">scriptAnalysis</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textLength</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">glyphCount</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textString</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a>[]</td>
      <td><span class="parametername">clusterMap</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.ShapingGlyphProperties.html">ShapingGlyphProperties</a>[]</td>
      <td><span class="parametername">glyphProperties</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.JustificationOpportunity.html">JustificationOpportunity</a>[]</td>
      <td><span class="parametername">justificationOpportunities</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustificationOpportunities_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustificationOpportunities_System_IntPtr_System_Single_C1_Util_DX_DirectWrite_ScriptAnalysis_System_Int32_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustificationOpportunities(System.IntPtr,System.Single,C1.Util.DX.DirectWrite.ScriptAnalysis,System.Int32,System.Int32,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)">GetJustificationOpportunities(IntPtr, float, ScriptAnalysis, int, int, IntPtr, IntPtr, IntPtr, IntPtr)</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetJustificationOpportunities(IntPtr fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, int textLength, int glyphCount, IntPtr textString, IntPtr clusterMap, IntPtr glyphProperties, IntPtr justificationOpportunities)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetJustificationOpportunities(fontFace As IntPtr, fontEmSize As Single, scriptAnalysis As ScriptAnalysis, textLength As Integer, glyphCount As Integer, textString As IntPtr, clusterMap As IntPtr, glyphProperties As IntPtr, justificationOpportunities As IntPtr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">fontFace</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">fontEmSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.ScriptAnalysis.html">ScriptAnalysis</a></td>
      <td><span class="parametername">scriptAnalysis</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textLength</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">glyphCount</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">textString</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">clusterMap</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">glyphProperties</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">justificationOpportunities</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
