# C1.Util.DX.DirectWrite.Factory.UnregisterFontFileLoader

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_Factory_UnregisterFontFileLoader_" data-uid="C1.Util.DX.DirectWrite.Factory.UnregisterFontFileLoader*">UnregisterFontFileLoader Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_Factory_UnregisterFontFileLoader_" data-uid="C1.Util.DX.DirectWrite.Factory.UnregisterFontFileLoader*"></a>
<h4 id="C1_Util_DX_DirectWrite_Factory_UnregisterFontFileLoader_C1_Util_DX_DirectWrite_FontFileLoader_" data-uid="C1.Util.DX.DirectWrite.Factory.UnregisterFontFileLoader(C1.Util.DX.DirectWrite.FontFileLoader)">UnregisterFontFileLoader(FontFileLoader)</h4>
<div class="markdown level1 summary"><p>Unregisters a font file loader that was previously registered with the DirectWrite font system using {{RegisterFontFileLoader}}.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UnregisterFontFileLoader(FontFileLoader fontFileLoader)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UnregisterFontFileLoader(fontFileLoader As FontFileLoader)</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.FontFileLoader.html">FontFileLoader</a></td>
      <td><span class="parametername">fontFileLoader</span></td>
      <td><p>Pointer to the file loader that was previously registered with the DirectWrite font system using {{RegisterFontFileLoader}}.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_Factory_UnregisterFontFileLoader_C1_Util_DX_DirectWrite_FontFileLoader__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This function unregisters font file loader callbacks with the DirectWrite font system. You should implement the font file loader interface by a singleton object. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite should be performed outside of the font file loader implementation.</p>
</div>
</div>
