# C1.Util.DX.DirectWrite.FontFamily.GetMatchingFonts

## Content

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