# GrapeCity.ActiveReports.Document.Drawing.Font.-ctor

## Content

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



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



<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_GrapeCity_ActiveReports_Document_Drawing_Font_GrapeCity_ActiveReports_Document_Drawing_FontStyle_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(GrapeCity.ActiveReports.Document.Drawing.Font,GrapeCity.ActiveReports.Document.Drawing.FontStyle)">Font(Font, FontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(Font prototype, FontStyle newStyle)</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="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a></td>
      <td><span class="parametername">prototype</span></td>
      <td><p>The prototype.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">newStyle</span></td>
      <td><p>The font style.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Occurs when prototype.size is less than or equal to 0.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single)">Font(string, float)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Occurs when size is less than or equal to 0.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Document_Drawing_FontStyle_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Document.Drawing.FontStyle)">Font(string, float, FontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize, FontStyle style)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The font style.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Document_Drawing_GraphicsUnit_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Document.Drawing.GraphicsUnit)">Font(string, float, GraphicsUnit)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize, GraphicsUnit unit)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The graphic Unit.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Document_Drawing_FontStyle_GrapeCity_ActiveReports_Document_Drawing_GraphicsUnit_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Document.Drawing.FontStyle,GrapeCity.ActiveReports.Document.Drawing.GraphicsUnit)">Font(string, float, FontStyle, GraphicsUnit)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.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.Document.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The graphic Unit.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Document_Drawing_FontStyle_GrapeCity_ActiveReports_Document_Drawing_GraphicsUnit_System_Byte_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Document.Drawing.FontStyle,GrapeCity.ActiveReports.Document.Drawing.GraphicsUnit,System.Byte)">Font(string, float, FontStyle, GraphicsUnit, byte)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.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.Document.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The graphic Unit.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">gdiCharSet</span></td>
      <td><p>The GDI char set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Document_Drawing_FontStyle_GrapeCity_ActiveReports_Document_Drawing_GraphicsUnit_System_Byte_System_Boolean_" data-uid="GrapeCity.ActiveReports.Document.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Document.Drawing.FontStyle,GrapeCity.ActiveReports.Document.Drawing.GraphicsUnit,System.Byte,System.Boolean)">Font(string, float, FontStyle, GraphicsUnit, byte, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of class <a class="xref" href="GrapeCity.ActiveReports.Document.Drawing.Font.html">Font</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)</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 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">emSize</span></td>
      <td><p>The size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Document.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.Document.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The graphic Unit.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">gdiCharSet</span></td>
      <td><p>The GDI char set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">gdiVerticalFont</span></td>
      <td><p>Determines whether the font is vertical.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
