# C1.C1Preview.DocumentFont

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DocumentFont" data-uid="C1.C1Preview.DocumentFont" class="text-break">DocumentFont Class
</h1>
  <div class="markdown level0 summary"><p>Describes a font used in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>
(see also <a class="xref" href="C1.C1Preview.C1PrintDocument.FontHandling.html#C1_C1Preview_C1PrintDocument_FontHandling">FontHandling</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">DocumentFont</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_DocumentFont_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class DocumentFont</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class DocumentFont</code></pre>
  </div>
  <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_DocumentFont_Bold" data-uid="C1.C1Preview.DocumentFont.Bold">
          <a class="xref" href="C1.C1Preview.DocumentFont.Bold.html#C1_C1Preview_DocumentFont_Bold">Bold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current font is bold.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_CodeRanges" data-uid="C1.C1Preview.DocumentFont.CodeRanges">
          <a class="xref" href="C1.C1Preview.DocumentFont.CodeRanges.html#C1_C1Preview_DocumentFont_CodeRanges">CodeRanges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.DocumentFont.CodeRanges.html#C1_C1Preview_DocumentFont_CodeRanges">CodeRanges</a> collection that defines glyphs that were rendered using the current font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_CoreFontBold" data-uid="C1.C1Preview.DocumentFont.CoreFontBold">
          <a class="xref" href="C1.C1Preview.DocumentFont.CoreFontBold.html#C1_C1Preview_DocumentFont_CoreFontBold">CoreFontBold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the underlying physical font is bold.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_CoreFontItalic" data-uid="C1.C1Preview.DocumentFont.CoreFontItalic">
          <a class="xref" href="C1.C1Preview.DocumentFont.CoreFontItalic.html#C1_C1Preview_DocumentFont_CoreFontItalic">CoreFontItalic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the underlying physical font is italic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_FontFamilyName" data-uid="C1.C1Preview.DocumentFont.FontFamilyName">
          <a class="xref" href="C1.C1Preview.DocumentFont.FontFamilyName.html#C1_C1Preview_DocumentFont_FontFamilyName">FontFamilyName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the actual font family name. This name may be used in API calls
to create the corresponding font.</p>
<p>
If <a class="xref" href="C1.C1Preview.C1PrintDocument.FontHandling.html#C1_C1Preview_C1PrintDocument_FontHandling">FontHandling</a> has been set to
<a class="xref" href="C1.C1Preview.FontHandling.html#C1_C1Preview_FontHandling_BuildActualDocumentFonts">BuildActualDocumentFonts</a> or
<a class="xref" href="C1.C1Preview.FontHandling.html#C1_C1Preview_FontHandling_EmbedActualFonts">EmbedActualFonts</a>,
this name may differ from <a class="xref" href="C1.C1Preview.DocumentFont.FontName.html#C1_C1Preview_DocumentFont_FontName">FontName</a>.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_FontFileName" data-uid="C1.C1Preview.DocumentFont.FontFileName">
          <a class="xref" href="C1.C1Preview.DocumentFont.FontFileName.html#C1_C1Preview_DocumentFont_FontFileName">FontFileName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the font file installed on the system or embedded in the document,
that is actually used to render the glyphs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_FontName" data-uid="C1.C1Preview.DocumentFont.FontName">
          <a class="xref" href="C1.C1Preview.DocumentFont.FontName.html#C1_C1Preview_DocumentFont_FontName">FontName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the font as specified by the user.</p>
<p>
For fonts created automatically due to font substitution,
this is still the name of the original specified font,
not of the substitute font.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_FontStyle" data-uid="C1.C1Preview.DocumentFont.FontStyle">
          <a class="xref" href="C1.C1Preview.DocumentFont.FontStyle.html#C1_C1Preview_DocumentFont_FontStyle">FontStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.fontstyle">FontStyle</a> of the current font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_Glyphs" data-uid="C1.C1Preview.DocumentFont.Glyphs">
          <a class="xref" href="C1.C1Preview.DocumentFont.Glyphs.html#C1_C1Preview_DocumentFont_Glyphs">Glyphs</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the array of glyphs that were rendered using the current font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_HasCodeRanges" data-uid="C1.C1Preview.DocumentFont.HasCodeRanges">
          <a class="xref" href="C1.C1Preview.DocumentFont.HasCodeRanges.html#C1_C1Preview_DocumentFont_HasCodeRanges">HasCodeRanges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.DocumentFont.CodeRanges.html#C1_C1Preview_DocumentFont_CodeRanges">CodeRanges</a> collection is not empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_HasGlyphs" data-uid="C1.C1Preview.DocumentFont.HasGlyphs">
          <a class="xref" href="C1.C1Preview.DocumentFont.HasGlyphs.html#C1_C1Preview_DocumentFont_HasGlyphs">HasGlyphs</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.DocumentFont.Glyphs.html#C1_C1Preview_DocumentFont_Glyphs">Glyphs</a> collection is not empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_Italic" data-uid="C1.C1Preview.DocumentFont.Italic">
          <a class="xref" href="C1.C1Preview.DocumentFont.Italic.html#C1_C1Preview_DocumentFont_Italic">Italic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current font is italic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFont_Owner" data-uid="C1.C1Preview.DocumentFont.Owner">
          <a class="xref" href="C1.C1Preview.DocumentFont.Owner.html#C1_C1Preview_DocumentFont_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.DocumentFontCollection.html">DocumentFontCollection</a> containing the current object.</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_DocumentFont_AssignFrom_C1_C1Preview_DocumentFont_" data-uid="C1.C1Preview.DocumentFont.AssignFrom(C1.C1Preview.DocumentFont)">
          <a class="xref" href="C1.C1Preview.DocumentFont.AssignFrom.html#C1_C1Preview_DocumentFont_AssignFrom_C1_C1Preview_DocumentFont_">AssignFrom(DocumentFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.DocumentFont.html">DocumentFont</a> to the current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
