# C1.Util.DX.DirectWrite.Factory.CreateFontFace

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_Factory_CreateFontFace_" data-uid="C1.Util.DX.DirectWrite.Factory.CreateFontFace*">CreateFontFace Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_Factory_CreateFontFace_" data-uid="C1.Util.DX.DirectWrite.Factory.CreateFontFace*"></a>
<h4 id="C1_Util_DX_DirectWrite_Factory_CreateFontFace_C1_Util_DX_DirectWrite_FontFaceType_System_Int32_C1_Util_DX_DirectWrite_FontFile___System_Int32_C1_Util_DX_DirectWrite_FontSimulations_" data-uid="C1.Util.DX.DirectWrite.Factory.CreateFontFace(C1.Util.DX.DirectWrite.FontFaceType,System.Int32,C1.Util.DX.DirectWrite.FontFile[],System.Int32,C1.Util.DX.DirectWrite.FontSimulations)">CreateFontFace(FontFaceType, int, FontFile[], int, FontSimulations)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFactory::CreateFontFace([In] DWRITE_FONT_FACE_TYPE fontFaceType,[In] unsigned int numberOfFiles,[In, Buffer] const IDWriteFontFile** fontFiles,[In] unsigned int faceIndex,[In] DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags,[Out, Fast] IDWriteFontFace** fontFace)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontFace CreateFontFace(FontFaceType fontFaceType, int numberOfFiles, FontFile[] fontFiles, int faceIndex, FontSimulations fontFaceSimulationFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateFontFace(fontFaceType As FontFaceType, numberOfFiles As Integer, 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.FontFaceType.html">FontFaceType</a></td>
      <td><span class="parametername">fontFaceType</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numberOfFiles</span></td>
      <td></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></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></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></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_Factory_CreateFontFace_" data-uid="C1.Util.DX.DirectWrite.Factory.CreateFontFace*"></a>
<h4 id="C1_Util_DX_DirectWrite_Factory_CreateFontFace_C1_Util_DX_DirectWrite_FontFaceType_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_DirectWrite_FontFile__System_Int32_C1_Util_DX_DirectWrite_FontSimulations_" data-uid="C1.Util.DX.DirectWrite.Factory.CreateFontFace(C1.Util.DX.DirectWrite.FontFaceType,System.Int32,C1.Util.DX.ComArray{C1.Util.DX.DirectWrite.FontFile},System.Int32,C1.Util.DX.DirectWrite.FontSimulations)">CreateFontFace(FontFaceType, int, ComArray&lt;FontFile&gt;, int, FontSimulations)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteFactory::CreateFontFace([In] DWRITE_FONT_FACE_TYPE fontFaceType,[In] unsigned int numberOfFiles,[In, Buffer] const IDWriteFontFile** fontFiles,[In] unsigned int faceIndex,[In] DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags,[Out, Fast] IDWriteFontFace** fontFace)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontFace CreateFontFace(FontFaceType fontFaceType, int numberOfFiles, ComArray&lt;FontFile&gt; fontFiles, int faceIndex, FontSimulations fontFaceSimulationFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateFontFace(fontFaceType As FontFaceType, numberOfFiles As Integer, fontFiles As ComArray(Of 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.FontFaceType.html">FontFaceType</a></td>
      <td><span class="parametername">fontFaceType</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numberOfFiles</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.ComArray-1.html">ComArray</a>&lt;<a class="xref" href="C1.Util.DX.DirectWrite.FontFile.html">FontFile</a>&gt;</td>
      <td><span class="parametername">fontFiles</span></td>
      <td></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></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></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>
