# GrapeCity.ActiveReports.Drawing.FontInfo.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor*">FontInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_System_String_System_Single_GrapeCity_ActiveReports_Drawing_FontStyle_GrapeCity_ActiveReports_Drawing_FontWeight_GrapeCity_ActiveReports_Drawing_FontDecoration_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Drawing.FontStyle,GrapeCity.ActiveReports.Drawing.FontWeight,GrapeCity.ActiveReports.Drawing.FontDecoration)">FontInfo(string, float, FontStyle, FontWeight, FontDecoration)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Drawing.FontInfo.html">FontInfo</a> class with specified font family, size, style, weight, and decoration.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontInfo(string familyName, float size, FontStyle style, FontWeight weight, FontDecoration decoration)</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.string">string</a></td>
      <td><span class="parametername">familyName</span></td>
      <td><p>The font family name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The font style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.FontWeight.html">FontWeight</a></td>
      <td><span class="parametername">weight</span></td>
      <td><p>The font weight.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.FontDecoration.html">FontDecoration</a></td>
      <td><span class="parametername">decoration</span></td>
      <td><p>The font decoration.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_System_String_System_Single_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor(System.String,System.Single)">FontInfo(string, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Drawing.FontInfo.html">FontInfo</a> class with specified font family and size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontInfo(string familyName, float size)</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.string">string</a></td>
      <td><span class="parametername">familyName</span></td>
      <td><p>The font family name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Drawing_FontInfo__ctor_System_String_System_Single_System_String_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Drawing.FontInfo.#ctor(System.String,System.Single,System.String,System.String,System.String)">FontInfo(string, float, string, string, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Drawing.FontInfo.html">FontInfo</a> class with specified font family, size, style, weight, and decoration as strings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontInfo(string familyName, float size, string style, string weight, string decoration)</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.string">string</a></td>
      <td><span class="parametername">familyName</span></td>
      <td><p>The font family name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The font style as a string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">weight</span></td>
      <td><p>The font weight as a string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">decoration</span></td>
      <td><p>The font decoration as a string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
