# C1.Util.DX.DirectWrite.FontFace1.GetGdiCompatibleGlyphAdvances

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontFace1_GetGdiCompatibleGlyphAdvances_" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetGdiCompatibleGlyphAdvances*">GetGdiCompatibleGlyphAdvances Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontFace1_GetGdiCompatibleGlyphAdvances_" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetGdiCompatibleGlyphAdvances*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontFace1_GetGdiCompatibleGlyphAdvances_System_Single_System_Single_System_Nullable_C1_Util_DX_Matrix3x2__C1_Util_DX_Bool_C1_Util_DX_Bool_System_Int32_System_Int16___System_Int32___" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetGdiCompatibleGlyphAdvances(System.Single,System.Single,System.Nullable{C1.Util.DX.Matrix3x2},C1.Util.DX.Bool,C1.Util.DX.Bool,System.Int32,System.Int16[],System.Int32[])">GetGdiCompatibleGlyphAdvances(float, float, Matrix3x2?, Bool, Bool, int, short[], int[])</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFontFace1::GetGdiCompatibleGlyphAdvances([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In] BOOL isSideways,[In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvances)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2? transform, Bool useGdiNatural, Bool isSideways, int glyphCount, short[] glyphIndices, int[] glyphAdvances)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetGdiCompatibleGlyphAdvances(emSize As Single, pixelsPerDip As Single, transform As Matrix3x2?, useGdiNatural As Bool, isSideways As Bool, glyphCount As Integer, glyphIndices As Short(), glyphAdvances As Integer())</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">emSize</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">pixelsPerDip</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a>?</td>
      <td><span class="parametername">transform</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Bool.html">Bool</a></td>
      <td><span class="parametername">useGdiNatural</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Bool.html">Bool</a></td>
      <td><span class="parametername">isSideways</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">glyphIndices</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">glyphAdvances</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
