# C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalyzer1_JustifyGlyphAdvances_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances*">JustifyGlyphAdvances Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_JustifyGlyphAdvances_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_JustifyGlyphAdvances_System_Single_System_Int32_C1_Util_DX_DirectWrite_JustificationOpportunity___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances(System.Single,System.Int32,C1.Util.DX.DirectWrite.JustificationOpportunity[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[])">JustifyGlyphAdvances(float, int, JustificationOpportunity[], float[], GlyphOffset[], float[], GlyphOffset[])</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void JustifyGlyphAdvances(float lineWidth, int glyphCount, JustificationOpportunity[] justificationOpportunities, float[] glyphAdvances, GlyphOffset[] glyphOffsets, float[] justifiedGlyphAdvances, GlyphOffset[] justifiedGlyphOffsets)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub JustifyGlyphAdvances(lineWidth As Single, glyphCount As Integer, justificationOpportunities As JustificationOpportunity(), glyphAdvances As Single(), glyphOffsets As GlyphOffset(), justifiedGlyphAdvances As Single(), justifiedGlyphOffsets 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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">lineWidth</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="C1.Util.DX.DirectWrite.JustificationOpportunity.html">JustificationOpportunity</a>[]</td>
      <td><span class="parametername">justificationOpportunities</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="C1.Util.DX.DirectWrite.GlyphOffset.html">GlyphOffset</a>[]</td>
      <td><span class="parametername">glyphOffsets</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>
  </tbody>
</table>


<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_JustifyGlyphAdvances_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_JustifyGlyphAdvances_System_Single_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.JustifyGlyphAdvances(System.Single,System.Int32,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)">JustifyGlyphAdvances(float, int, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr)</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void JustifyGlyphAdvances(float lineWidth, int glyphCount, IntPtr justificationOpportunities, IntPtr glyphAdvances, IntPtr glyphOffsets, IntPtr justifiedGlyphAdvances, IntPtr justifiedGlyphOffsets)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub JustifyGlyphAdvances(lineWidth As Single, glyphCount As Integer, justificationOpportunities As IntPtr, glyphAdvances As IntPtr, glyphOffsets As IntPtr, justifiedGlyphAdvances As IntPtr, justifiedGlyphOffsets 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.single">float</a></td>
      <td><span class="parametername">lineWidth</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">justificationOpportunities</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">glyphAdvances</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">glyphOffsets</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">justifiedGlyphAdvances</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">justifiedGlyphOffsets</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
