# C1.Util.Font.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*">Font Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_System_String_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.#ctor(System.String,System.Single,C1.Util.FontStyle)">Font(string, float, FontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</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 name, float sizeInPoints, FontStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, sizeInPoints As Single, style As FontStyle)</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">name</span></td>
      <td><p>Font face.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>Font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_System_String_System_Single_" data-uid="C1.Util.Font.#ctor(System.String,System.Single)">Font(string, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</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 name, float sizeInPoints)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, sizeInPoints As Single)</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">name</span></td>
      <td><p>Font face.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>Font size in points.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_C1_Util_Font_C1_Util_FontStyle_" data-uid="C1.Util.Font.#ctor(C1.Util.Font,C1.Util.FontStyle)">Font(Font, FontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object from a other font.</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 font, FontStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(font As Font, style As FontStyle)</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.Font.html">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The other font.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_IO_Stream_" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,System.IO.Stream)">Font(FontStyle, float, Stream)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object from a stream containing raw font data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(FontStyle style, float sizeInPoints, Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As FontStyle, sizeInPoints As Single, stream As Stream)</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.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with raw font data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_C1_Util_FontSubSet_" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,C1.Util.FontSubSet)">Font(FontStyle, float, FontSubSet)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(FontStyle style, float sizeInPoints, FontSubSet subset)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As FontStyle, sizeInPoints As Single, subset As FontSubSet)</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.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontSubSet.html">FontSubSet</a></td>
      <td><span class="parametername">subset</span></td>
      <td><p>The font subset object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font__ctor_" data-uid="C1.Util.Font.#ctor*"></a>
<h4 id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_Byte___" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,System.Byte[])">Font(FontStyle, float, byte[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font(FontStyle style, float sizeInPoints, byte[] fontData)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(style As FontStyle, sizeInPoints As Single, fontData As Byte())</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.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</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.byte">byte</a>[]</td>
      <td><span class="parametername">fontData</span></td>
      <td><p>The raw font file data.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
