# C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustifiedGlyphs

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustifiedGlyphs_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustifiedGlyphs*">GetJustifiedGlyphs Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustifiedGlyphs_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustifiedGlyphs*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetJustifiedGlyphs_C1_Util_DX_DirectWrite_FontFace_System_Single_C1_Util_DX_DirectWrite_ScriptAnalysis_System_Int32_System_Int32_System_Int32_System_Int16___System_Int16___System_Single___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___C1_Util_DX_DirectWrite_ShapingGlyphProperties___System_Int32_System_Int16___System_Int16___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetJustifiedGlyphs(C1.Util.DX.DirectWrite.FontFace,System.Single,C1.Util.DX.DirectWrite.ScriptAnalysis,System.Int32,System.Int32,System.Int32,System.Int16[],System.Int16[],System.Single[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[],C1.Util.DX.DirectWrite.ShapingGlyphProperties[],System.Int32,System.Int16[],System.Int16[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[])">GetJustifiedGlyphs(FontFace, float, ScriptAnalysis, int, int, int, short[], short[], float[], float[], GlyphOffset[], ShapingGlyphProperties[], int, short[], short[], float[], GlyphOffset[])</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">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)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetJustifiedGlyphs(fontFace As FontFace, fontEmSize As Single, scriptAnalysis As ScriptAnalysis, textLength As Integer, glyphCount As Integer, maxGlyphCount As Integer, clusterMap As Short(), glyphIndices As Short(), glyphAdvances As Single(), justifiedGlyphAdvances As Single(), justifiedGlyphOffsets As GlyphOffset(), glyphProperties As ShapingGlyphProperties(), actualGlyphCount As Integer, modifiedClusterMap As Short(), modifiedGlyphIndices As Short(), modifiedGlyphAdvances As Single(), modifiedGlyphOffsets As GlyphOffset())</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.int32">int</a></td>
      <td><span class="parametername">maxGlyphCount</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="https://learn.microsoft.com/dotnet/api/system.int16">short</a>[]</td>
      <td><span class="parametername">glyphIndices</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">glyphAdvances</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">justifiedGlyphAdvances</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphOffset.html">GlyphOffset</a>[]</td>
      <td><span class="parametername">justifiedGlyphOffsets</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">actualGlyphCount</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">modifiedClusterMap</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">modifiedGlyphIndices</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">modifiedGlyphAdvances</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphOffset.html">GlyphOffset</a>[]</td>
      <td><span class="parametername">modifiedGlyphOffsets</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
