# C1.WPF.Word.Font.-ctor

## Content

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



<h1 id="C1_WPF_Word_Font__ctor_" data-uid="C1.WPF.Word.Font.#ctor*">Font Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Word_Font__ctor_" data-uid="C1.WPF.Word.Font.#ctor*"></a>
<h4 id="C1_WPF_Word_Font__ctor_System_String_System_Double_C1_WPF_Word_RtfFontStyle_" data-uid="C1.WPF.Word.Font.#ctor(System.String,System.Double,C1.WPF.Word.RtfFontStyle)">Font(string, double, RtfFontStyle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.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, double sizeInPoints, RtfFontStyle 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">name</span></td>
      <td><p>Font face.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</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.WPF.Word.RtfFontStyle.html">RtfFontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Font__ctor_" data-uid="C1.WPF.Word.Font.#ctor*"></a>
<h4 id="C1_WPF_Word_Font__ctor_System_String_System_Double_" data-uid="C1.WPF.Word.Font.#ctor(System.String,System.Double)">Font(string, double)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.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, double sizeInPoints)</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.double">double</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>Font size in points.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Font__ctor_" data-uid="C1.WPF.Word.Font.#ctor*"></a>
<h4 id="C1_WPF_Word_Font__ctor_C1_WPF_Word_RtfFontStyle_System_Double_System_String_" data-uid="C1.WPF.Word.Font.#ctor(C1.WPF.Word.RtfFontStyle,System.Double,System.String)">Font(RtfFontStyle, double, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.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(RtfFontStyle style, double sizeInPoints, string path)</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.WPF.Word.RtfFontStyle.html">RtfFontStyle</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.double">double</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.string">string</a></td>
      <td><span class="parametername">path</span></td>
      <td><p>The path for raw font file.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Font__ctor_" data-uid="C1.WPF.Word.Font.#ctor*"></a>
<h4 id="C1_WPF_Word_Font__ctor_C1_WPF_Word_RtfFontStyle_System_Double_System_Byte___" data-uid="C1.WPF.Word.Font.#ctor(C1.WPF.Word.RtfFontStyle,System.Double,System.Byte[])">Font(RtfFontStyle, double, byte[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Word.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(RtfFontStyle style, double sizeInPoints, byte[] fontData)</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.WPF.Word.RtfFontStyle.html">RtfFontStyle</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.double">double</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>
