# GrapeCity.ActiveReports.Viewer.Win.DefaultFontFactory.SetApplicationDefaultFont

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Viewer_Win_DefaultFontFactory_SetApplicationDefaultFont_" data-uid="GrapeCity.ActiveReports.Viewer.Win.DefaultFontFactory.SetApplicationDefaultFont*">SetApplicationDefaultFont Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Viewer_Win_DefaultFontFactory_SetApplicationDefaultFont_" data-uid="GrapeCity.ActiveReports.Viewer.Win.DefaultFontFactory.SetApplicationDefaultFont*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Win_DefaultFontFactory_SetApplicationDefaultFont_System_Func_System_Single_System_Drawing_FontStyle_System_Drawing_Font__" data-uid="GrapeCity.ActiveReports.Viewer.Win.DefaultFontFactory.SetApplicationDefaultFont(System.Func{System.Single,System.Drawing.FontStyle,System.Drawing.Font})">SetApplicationDefaultFont(Func&lt;float, FontStyle, Font&gt;)</h4>
<div class="markdown level1 summary"><p>Sets a custom font factory for creating default WinForms fonts.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void SetApplicationDefaultFont(Func&lt;float, FontStyle, Font&gt; fontFactory)</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.func-3">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.fontstyle">FontStyle</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a>&gt;</td>
      <td><span class="parametername">fontFactory</span></td>
      <td><p>The custom font factory function.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
