# C1.Util.DX.DirectWrite.FontCollection.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontCollection_Create_" data-uid="C1.Util.DX.DirectWrite.FontCollection.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontCollection_Create_" data-uid="C1.Util.DX.DirectWrite.FontCollection.Create*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontCollection_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_FontCollectionLoader_C1_Util_DX_DataPointer_" data-uid="C1.Util.DX.DirectWrite.FontCollection.Create(C1.Util.DX.DirectWrite.Factory,C1.Util.DX.DirectWrite.FontCollectionLoader,C1.Util.DX.DataPointer)">Create(Factory, FontCollectionLoader, DataPointer)</h4>
<div class="markdown level1 summary"><p>Creates a font collection using a custom font collection loader.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FontCollection Create(Factory factory, FontCollectionLoader collectionLoader, DataPointer collectionKey)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, collectionLoader As FontCollectionLoader, collectionKey As DataPointer) As FontCollection</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.FontCollectionLoader.html">FontCollectionLoader</a></td>
      <td><span class="parametername">collectionLoader</span></td>
      <td><p>An application-defined font collection loader, which must have been previously registered using <span class="xref">C1.Util.DX.DirectWrite.Factory.RegisterFontCollectionLoader_(System.IntPtr)</span>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DataPointer.html">DataPointer</a></td>
      <td><span class="parametername">collectionKey</span></td>
      <td><p>The key used by the loader to identify a collection of font files.  The buffer allocated for this key should at least be the size of collectionKeySize.</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.FontCollection.html">FontCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
