# GrapeCity.Documents.Text.FontTables.TryMapChars

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_FontTables_TryMapChars_" data-uid="GrapeCity.Documents.Text.FontTables.TryMapChars*">TryMapChars Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_FontTables_TryMapChars_" data-uid="GrapeCity.Documents.Text.FontTables.TryMapChars*"></a>
<h4 id="GrapeCity_Documents_Text_FontTables_TryMapChars_System_Collections_Generic_HashSet_System_Int32__System_Collections_Generic_HashSet_System_Int32__" data-uid="GrapeCity.Documents.Text.FontTables.TryMapChars(System.Collections.Generic.HashSet{System.Int32},System.Collections.Generic.HashSet{System.Int32})">TryMapChars(HashSet&lt;int&gt;, HashSet&lt;int&gt;)</h4>
<div class="markdown level1 summary"><p>Maps the specified set of Unicode characters to the font glyphs and fills the set of successfully mapped characters.</p>
<p>
Depends on 'cmap' table.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void TryMapChars(HashSet&lt;int&gt; unicodeChars, HashSet&lt;int&gt; mappedChars)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub TryMapChars(unicodeChars As HashSet(Of Integer), mappedChars As HashSet(Of Integer))</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="https://learn.microsoft.com/dotnet/api/system.collections.generic.hashset-1">HashSet</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td><span class="parametername">unicodeChars</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.hashset-1">HashSet</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td><span class="parametername">mappedChars</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
