# C1.Util.DX.DirectWrite.FontFace1.GetRecommendedRenderingMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontFace1_GetRecommendedRenderingMode_" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetRecommendedRenderingMode*">GetRecommendedRenderingMode Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontFace1_GetRecommendedRenderingMode_" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetRecommendedRenderingMode*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontFace1_GetRecommendedRenderingMode_System_Single_System_Single_System_Single_System_Nullable_C1_Util_DX_Matrix3x2__C1_Util_DX_Bool_C1_Util_DX_DirectWrite_OutlineThreshold_C1_Util_DX_DirectWrite_MeasuringMode_" data-uid="C1.Util.DX.DirectWrite.FontFace1.GetRecommendedRenderingMode(System.Single,System.Single,System.Single,System.Nullable{C1.Util.DX.Matrix3x2},C1.Util.DX.Bool,C1.Util.DX.DirectWrite.OutlineThreshold,C1.Util.DX.DirectWrite.MeasuringMode)">GetRecommendedRenderingMode(float, float, float, Matrix3x2?, Bool, OutlineThreshold, MeasuringMode)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFontFace1::GetRecommendedRenderingMode([In] float fontEmSize,[In] float dpiX,[In] float dpiY,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL isSideways,[In] DWRITE_OUTLINE_THRESHOLD outlineThreshold,[In] DWRITE_MEASURING_MODE measuringMode,[Out] DWRITE_RENDERING_MODE* renderingMode)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderingMode GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2? transform, Bool isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetRecommendedRenderingMode(fontEmSize As Single, dpiX As Single, dpiY As Single, transform As Matrix3x2?, isSideways As Bool, outlineThreshold As OutlineThreshold, measuringMode As MeasuringMode) As RenderingMode</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">fontEmSize</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">dpiX</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">dpiY</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">isSideways</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.OutlineThreshold.html">OutlineThreshold</a></td>
      <td><span class="parametername">outlineThreshold</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.MeasuringMode.html">MeasuringMode</a></td>
      <td><span class="parametername">measuringMode</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingMode.html">RenderingMode</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
