# C1.Util.DX.DirectWrite.TextAnalyzer1.ApplyCharacterSpacing

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalyzer1_ApplyCharacterSpacing_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.ApplyCharacterSpacing*">ApplyCharacterSpacing Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_ApplyCharacterSpacing_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.ApplyCharacterSpacing*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_ApplyCharacterSpacing_System_Single_System_Single_System_Single_System_Int32_System_Int32_System_Int16___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___C1_Util_DX_DirectWrite_ShapingGlyphProperties___System_Single___C1_Util_DX_DirectWrite_GlyphOffset___" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.ApplyCharacterSpacing(System.Single,System.Single,System.Single,System.Int32,System.Int32,System.Int16[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[],C1.Util.DX.DirectWrite.ShapingGlyphProperties[],System.Single[],C1.Util.DX.DirectWrite.GlyphOffset[])">ApplyCharacterSpacing(float, float, float, int, int, short[], float[], GlyphOffset[], ShapingGlyphProperties[], float[], GlyphOffset[])</h4>
<div class="markdown level1 summary"><p>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)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">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)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ApplyCharacterSpacing(leadingSpacing As Single, trailingSpacing As Single, minimumAdvanceWidth As Single, textLength As Integer, glyphCount As Integer, clusterMap As Short(), glyphAdvances As Single(), glyphOffsets As GlyphOffset(), glyphProperties As ShapingGlyphProperties(), 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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">leadingSpacing</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">trailingSpacing</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">minimumAdvanceWidth</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.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.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="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.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>
