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

## Content

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



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



<a id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_System_String_System_Single_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor(System.String,System.Single)">Font(string, float)</h4>
<div class="markdown level1 summary"><p>Initializes a font with the given family name and em size, using a regular style measured in points.</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 name of the font family (for example, <code>&quot;Arial&quot;</code>).</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 em size of the font, in points; must be greater than zero.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Chart_Drawing_FontStyle_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Chart.Drawing.FontStyle)">Font(string, float, FontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a font with the given family name, em size and style, measured in points.</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 name of the font family (for example, <code>&quot;Arial&quot;</code>).</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 em size of the font, in points; must be greater than zero.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The combination of styles (bold, italic, and so on) to apply.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Chart_Drawing_GraphicsUnit_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit)">Font(string, float, GraphicsUnit)</h4>
<div class="markdown level1 summary"><p>Initializes a font with the given family name and em size, expressed in the specified unit, using a regular style.</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 name of the font family (for example, <code>&quot;Arial&quot;</code>).</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 em size of the font, expressed in <code class="paramref">unit</code>; must be greater than zero.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The unit of measure that <code class="paramref">emSize</code> is expressed in.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Chart_Drawing_FontStyle_GrapeCity_ActiveReports_Chart_Drawing_GraphicsUnit_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Chart.Drawing.FontStyle,GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit)">Font(string, float, FontStyle, GraphicsUnit)</h4>
<div class="markdown level1 summary"><p>Initializes a font with the given family name, em size, style and unit of measure.</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 name of the font family (for example, <code>&quot;Arial&quot;</code>).</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 em size of the font, expressed in <code class="paramref">unit</code>; must be greater than zero.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The combination of styles (bold, italic, and so on) to apply.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The unit of measure that <code class="paramref">emSize</code> is expressed in.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Font__ctor_System_String_System_Single_GrapeCity_ActiveReports_Chart_Drawing_FontStyle_GrapeCity_ActiveReports_Chart_Drawing_GraphicsUnit_System_Byte_System_Boolean_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Font.#ctor(System.String,System.Single,GrapeCity.ActiveReports.Chart.Drawing.FontStyle,GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit,System.Byte,System.Boolean)">Font(string, float, FontStyle, GraphicsUnit, byte, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a font with full control over family name, size, style, unit and GDI character-set information.</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 name of the font family (for example, <code>&quot;Arial&quot;</code>).</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 em size of the font, expressed in <code class="paramref">unit</code>; must be greater than zero.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The combination of styles (bold, italic, and so on) to apply.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Chart.Drawing.GraphicsUnit.html">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The unit of measure that <code class="paramref">emSize</code> is expressed in.</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 character set to use, as defined by the Windows <code>LOGFONT</code> structure.</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><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> to select the vertical (top-to-bottom) variant of the font; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
