# C1.C1Preview.EmbeddedFont.AddGlyphs

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*">AddGlyphs Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*"></a>
<h4 id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_System_Boolean_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.String,System.Boolean)">AddGlyphs(string, bool)</h4>
<div class="markdown level1 summary"><p>Adds unique glyphs or glyph ranges from the specified string to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.
The ranges recognized by this method are represented by the <a class="xref" href="C1.C1Preview.UnicodeRangeEnum.html">UnicodeRangeEnum</a> enumeration.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddGlyphs(string text, bool includeUnicodeRanges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddGlyphs(text As String, includeUnicodeRanges As Boolean)</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The string to add the glyphs from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeUnicodeRanges</span></td>
      <td><p>If <b>true</b>, for each unique glyph in <code class="paramref">text</code>, the whole Unicode range containing the glyph
(such as &quot;Basic Latin&quot; or &quot;Cyrillic&quot;) is added. If <b>false</b>, only the glyph itself is added.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*"></a>
<h4 id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.String)">AddGlyphs(string)</h4>
<div class="markdown level1 summary"><p>Adds unique glyphs from the specified string to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddGlyphs(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddGlyphs(text As String)</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The string to add the glyphs from.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*"></a>
<h4 id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_Int32_System_Int32_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.Int32,System.Int32)">AddGlyphs(int, int)</h4>
<div class="markdown level1 summary"><p>Adds a range of glyphs to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddGlyphs(int first, int last)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddGlyphs(first As Integer, last As 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.int32">int</a></td>
      <td><span class="parametername">first</span></td>
      <td><p>The first glyph in the range to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">last</span></td>
      <td><p>The last glyph in the range to add.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*"></a>
<h4 id="C1_C1Preview_EmbeddedFont_AddGlyphs_C1_C1Preview_UnicodeRangeEnum_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(C1.C1Preview.UnicodeRangeEnum)">AddGlyphs(UnicodeRangeEnum)</h4>
<div class="markdown level1 summary"><p>Adds all glyphs from the specified range to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddGlyphs(UnicodeRangeEnum unicodeRange)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddGlyphs(unicodeRange As UnicodeRangeEnum)</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.C1Preview.UnicodeRangeEnum.html">UnicodeRangeEnum</a></td>
      <td><span class="parametername">unicodeRange</span></td>
      <td><p>The range to add.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_EmbeddedFont_AddGlyphs_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs*"></a>
<h4 id="C1_C1Preview_EmbeddedFont_AddGlyphs_C1_Util_CodeRanges_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(C1.Util.CodeRanges)">AddGlyphs(CodeRanges)</h4>
<div class="markdown level1 summary"><p>Adds all CodeRange objects in codeRanges to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddGlyphs(CodeRanges codeRanges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddGlyphs(codeRanges As CodeRanges)</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.CodeRanges.html">CodeRanges</a></td>
      <td><span class="parametername">codeRanges</span></td>
      <td><p>CodeRange to add.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
