# GrapeCity.Documents.Imaging.Skia.SkiaFontCache

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_Skia_SkiaFontCache" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache" class="text-break">SkiaFontCache Class
</h1>
  <div class="markdown level0 summary"><p>Represents a cache of <span class="xref">SkiaSharp.SKTypeface</span> fonts
that can be used for drawing text on a <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaGraphics.html">GcSkiaGraphics</a>.</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">SkiaFontCache</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.Skia.html">GrapeCity.Documents.Imaging.Skia</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.Skia.dll</h6>
  <h5 id="GrapeCity_Documents_Imaging_Skia_SkiaFontCache_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SkiaFontCache : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SkiaFontCache
    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_Skia_SkiaFontCache__ctor" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.#ctor">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.-ctor.html#GrapeCity_Documents_Imaging_Skia_SkiaFontCache__ctor">SkiaFontCache()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.html">SkiaFontCache</a> 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_Skia_SkiaFontCache_AddRef" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.AddRef">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.AddRef.html#GrapeCity_Documents_Imaging_Skia_SkiaFontCache_AddRef">AddRef()</a>
        </td>
        <td class="markdown level1 summary"><p>Increments the internal reference counter to prevent disposing an auto-created font cache.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Clear" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Clear">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Clear.html#GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the font cache.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Dispose" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Dispose">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Dispose.html#GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.html">SkiaFontCache</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Dispose_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.SkiaFontCache.Dispose.html#GrapeCity_Documents_Imaging_Skia_SkiaFontCache_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs cleanup operations on managed and unmanaged resources.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
