# C1.Util.DX.DirectWrite.FontFace.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontFace_Create_" data-uid="C1.Util.DX.DirectWrite.FontFace.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontFace_Create_" data-uid="C1.Util.DX.DirectWrite.FontFace.Create*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontFace_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_FontFaceType_C1_Util_DX_DirectWrite_FontFile___System_Int32_C1_Util_DX_DirectWrite_FontSimulations_" data-uid="C1.Util.DX.DirectWrite.FontFace.Create(C1.Util.DX.DirectWrite.Factory,C1.Util.DX.DirectWrite.FontFaceType,C1.Util.DX.DirectWrite.FontFile[],System.Int32,C1.Util.DX.DirectWrite.FontSimulations)">Create(Factory, FontFaceType, FontFile[], int, FontSimulations)</h4>
<div class="markdown level1 summary"><p>Creates an object that represents a font face.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FontFace Create(Factory factory, FontFaceType fontFaceType, FontFile[] fontFiles, int faceIndex, FontSimulations fontFaceSimulationFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, fontFaceType As FontFaceType, fontFiles As FontFile(), faceIndex As Integer, fontFaceSimulationFlags As FontSimulations) As FontFace</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.DX.DirectWrite.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>A reference to a DirectWrite factory <a class="xref" href="C1.Util.DX.DirectWrite.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFaceType.html">FontFaceType</a></td>
      <td><span class="parametername">fontFaceType</span></td>
      <td><p>A value that indicates the type of file format of the font face.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFile.html">FontFile</a>[]</td>
      <td><span class="parametername">fontFiles</span></td>
      <td><p>A font file object representing the font face. Because<span class="xref">C1.Win.DX.DirectWrite.FontFace</span> maintains its own references to the input font file objects, you may release them after this call.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">faceIndex</span></td>
      <td><p>The zero-based index of a font face, in cases when the font files contain a collection of font faces. If the font files contain a single face, this value should be zero.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontSimulations.html">FontSimulations</a></td>
      <td><span class="parametername">fontFaceSimulationFlags</span></td>
      <td><p>A value that indicates which, if any, font face simulation flags for algorithmic means of making text bold or italic are applied to the current font face.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFace.html">FontFace</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_DirectWrite_FontFace_Create_" data-uid="C1.Util.DX.DirectWrite.FontFace.Create*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontFace_Create_C1_Util_DX_DirectWrite_Font_" data-uid="C1.Util.DX.DirectWrite.FontFace.Create(C1.Util.DX.DirectWrite.Font)">Create(Font)</h4>
<div class="markdown level1 summary"><p>Creates a font face object for the font.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FontFace Create(Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(font As Font) As FontFace</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.DX.DirectWrite.Font.html">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>the <a class="xref" href="C1.Util.DX.DirectWrite.Font.html">Font</a> to create the FontFace from.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFace.html">FontFace</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
