# GrapeCity.Documents.Imaging.Windows.FontCache

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_Windows_FontCache" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache" class="text-break">FontCache Class
</h1>
  <div class="markdown level0 summary"><p>Collects DirectWrite fonts for using in various <a class="xref" href="GrapeCity.Documents.Imaging.Windows.GcDXGraphics.html">GcDXGraphics</a>s.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">FontCache</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Imaging.Windows.html">GrapeCity.Documents.Imaging.Windows</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.Windows.dll</h6>
  <h5 id="GrapeCity_Documents_Imaging_Windows_FontCache_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FontCache : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FontCache
    Implements IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache__ctor" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.#ctor">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.-ctor.html#GrapeCity_Documents_Imaging_Windows_FontCache__ctor">FontCache()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.html">FontCache</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache__ctor_GrapeCity_Documents_DX_DirectWrite_Factory1_" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.#ctor(GrapeCity.Documents.DX.DirectWrite.Factory1)">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.-ctor.html#GrapeCity_Documents_Imaging_Windows_FontCache__ctor_GrapeCity_Documents_DX_DirectWrite_Factory1_">FontCache(Factory1)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.html">FontCache</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_DWFactory" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.DWFactory">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.DWFactory.html#GrapeCity_Documents_Imaging_Windows_FontCache_DWFactory">DWFactory</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an instance of the <span class="xref">GrapeCity.Documents.DX.DirectWrite.Factory1</span> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_AddRef" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.AddRef">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.AddRef.html#GrapeCity_Documents_Imaging_Windows_FontCache_AddRef">AddRef()</a>
        </td>
        <td class="markdown level1 summary"><p>Increments the internal reference counter to prevent disposing the auto-created font cache.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_Clear" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.Clear">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.Clear.html#GrapeCity_Documents_Imaging_Windows_FontCache_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the font cache.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_Dispose" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.Dispose">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.Dispose.html#GrapeCity_Documents_Imaging_Windows_FontCache_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_Dispose_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.Dispose.html#GrapeCity_Documents_Imaging_Windows_FontCache_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs cleanup operations on managed and unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Windows_FontCache_GetFontFace_GrapeCity_Documents_Text_Font_" data-uid="GrapeCity.Documents.Imaging.Windows.FontCache.GetFontFace(GrapeCity.Documents.Text.Font)">
          <a class="xref" href="GrapeCity.Documents.Imaging.Windows.FontCache.GetFontFace.html#GrapeCity_Documents_Imaging_Windows_FontCache_GetFontFace_GrapeCity_Documents_Text_Font_">GetFontFace(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an instance of the <span class="xref">GrapeCity.Documents.DX.DirectWrite.FontFace</span> for a given <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Text.Font.html">Font</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
