# C1.Util.DX.DirectWrite.FontFamily.GetFirstMatchingFont

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontFamily_GetFirstMatchingFont_" data-uid="C1.Util.DX.DirectWrite.FontFamily.GetFirstMatchingFont*">GetFirstMatchingFont Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontFamily_GetFirstMatchingFont_" data-uid="C1.Util.DX.DirectWrite.FontFamily.GetFirstMatchingFont*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontFamily_GetFirstMatchingFont_C1_Util_DX_DirectWrite_FontWeight_C1_Util_DX_DirectWrite_FontStretch_C1_Util_DX_DirectWrite_FontStyle_" data-uid="C1.Util.DX.DirectWrite.FontFamily.GetFirstMatchingFont(C1.Util.DX.DirectWrite.FontWeight,C1.Util.DX.DirectWrite.FontStretch,C1.Util.DX.DirectWrite.FontStyle)">GetFirstMatchingFont(FontWeight, FontStretch, FontStyle)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFontFamily::GetFirstMatchingFont([In] DWRITE_FONT_WEIGHT weight,[In] DWRITE_FONT_STRETCH stretch,[In] DWRITE_FONT_STYLE style,[Out] IDWriteFont** matchingFont)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetFirstMatchingFont(weight As FontWeight, stretch As FontStretch, style As FontStyle) As Font</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.FontWeight.html">FontWeight</a></td>
      <td><span class="parametername">weight</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontStretch.html">FontStretch</a></td>
      <td><span class="parametername">stretch</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</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.Font.html">Font</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
