# C1.C1Preview.EmbeddedFont

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_EmbeddedFont" data-uid="C1.C1Preview.EmbeddedFont" class="text-break">EmbeddedFont Class
</h1>
  <div class="markdown level0 summary"><p>Specifies the embedded font parameters.</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">EmbeddedFont</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_EmbeddedFont_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class EmbeddedFont</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class EmbeddedFont</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="C1_C1Preview_EmbeddedFont__ctor_System_Drawing_Font_" data-uid="C1.C1Preview.EmbeddedFont.#ctor(System.Drawing.Font)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.-ctor.html#C1_C1Preview_EmbeddedFont__ctor_System_Drawing_Font_">EmbeddedFont(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</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="C1_C1Preview_EmbeddedFont_Bold" data-uid="C1.C1Preview.EmbeddedFont.Bold">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.Bold.html#C1_C1Preview_EmbeddedFont_Bold">Bold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current embedded font is <b>bold</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_CanEmbed" data-uid="C1.C1Preview.EmbeddedFont.CanEmbed">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.CanEmbed.html#C1_C1Preview_EmbeddedFont_CanEmbed">CanEmbed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the license for the current font allows embedding.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_CanSubset" data-uid="C1.C1Preview.EmbeddedFont.CanSubset">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.CanSubset.html#C1_C1Preview_EmbeddedFont_CanSubset">CanSubset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the license for the current font allows subsetting when embedded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_CharSet" data-uid="C1.C1Preview.EmbeddedFont.CharSet">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.CharSet.html#C1_C1Preview_EmbeddedFont_CharSet">CharSet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the charset of the current embedded font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_CodeRanges" data-uid="C1.C1Preview.EmbeddedFont.CodeRanges">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.CodeRanges.html#C1_C1Preview_EmbeddedFont_CodeRanges">CodeRanges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <span class="xref">C1.Util.CodeRanges</span> collection defining set of char codes
supported by this <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a> object.
If this collection is empty then glyphs for characters will be embedded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_FontData" data-uid="C1.C1Preview.EmbeddedFont.FontData">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.FontData.html#C1_C1Preview_EmbeddedFont_FontData">FontData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an array of bytes containing the embedded font's data.
This property can be null if the font was created during document generation,
i.e. if the current object represents a font that was not loaded and currently exists in the system.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_FontName" data-uid="C1.C1Preview.EmbeddedFont.FontName">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.FontName.html#C1_C1Preview_EmbeddedFont_FontName">FontName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the current embedded font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_Initialized" data-uid="C1.C1Preview.EmbeddedFont.Initialized">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.Initialized.html#C1_C1Preview_EmbeddedFont_Initialized">Initialized</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current object has produced the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.fontfamily">FontFamily</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_Italic" data-uid="C1.C1Preview.EmbeddedFont.Italic">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.Italic.html#C1_C1Preview_EmbeddedFont_Italic">Italic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current embedded font is <i>italic</i>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_MustObfuscate" data-uid="C1.C1Preview.EmbeddedFont.MustObfuscate">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.MustObfuscate.html#C1_C1Preview_EmbeddedFont_MustObfuscate">MustObfuscate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the license for the current font requires obfuscating when embedded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_MustRestrict" data-uid="C1.C1Preview.EmbeddedFont.MustRestrict">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.MustRestrict.html#C1_C1Preview_EmbeddedFont_MustRestrict">MustRestrict</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the license for the current font restricts embedding to print and preview uses.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_ShouldObfuscate" data-uid="C1.C1Preview.EmbeddedFont.ShouldObfuscate">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.ShouldObfuscate.html#C1_C1Preview_EmbeddedFont_ShouldObfuscate">ShouldObfuscate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current embedded should be obfuscated when embedded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_Style" data-uid="C1.C1Preview.EmbeddedFont.Style">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.Style.html#C1_C1Preview_EmbeddedFont_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a style of current embedded font.</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="C1_C1Preview_EmbeddedFont_AddGlyphs_C1_C1Preview_UnicodeRangeEnum_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(C1.C1Preview.UnicodeRangeEnum)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.AddGlyphs.html#C1_C1Preview_EmbeddedFont_AddGlyphs_C1_C1Preview_UnicodeRangeEnum_">AddGlyphs(UnicodeRangeEnum)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_AddGlyphs_C1_Util_CodeRanges_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(C1.Util.CodeRanges)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.AddGlyphs.html#C1_C1Preview_EmbeddedFont_AddGlyphs_C1_Util_CodeRanges_">AddGlyphs(CodeRanges)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds all <span class="xref">C1.Util.CodeRange</span> objects in codeRanges to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_Int32_System_Int32_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.AddGlyphs.html#C1_C1Preview_EmbeddedFont_AddGlyphs_System_Int32_System_Int32_">AddGlyphs(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a range of glyphs to the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.String)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.AddGlyphs.html#C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_">AddGlyphs(string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_System_Boolean_" data-uid="C1.C1Preview.EmbeddedFont.AddGlyphs(System.String,System.Boolean)">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.AddGlyphs.html#C1_C1Preview_EmbeddedFont_AddGlyphs_System_String_System_Boolean_">AddGlyphs(string, bool)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFont_GetFontFamily" data-uid="C1.C1Preview.EmbeddedFont.GetFontFamily">
          <a class="xref" href="C1.C1Preview.EmbeddedFont.GetFontFamily.html#C1_C1Preview_EmbeddedFont_GetFontFamily">GetFontFamily()</a>
        </td>
        <td class="markdown level1 summary"><p>Get the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.fontfamily">FontFamily</a> object describing the current <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
