# C1.Util.Font

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_Font" data-uid="C1.Util.Font" class="text-break">Font Class
</h1>
  <div class="markdown level0 summary"><p>Defines a format for text, including font face, size, and style attributes.</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">Font</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.html">C1.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.Pdf.dll</h6>
  <h5 id="C1_Util_Font_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Font</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Font</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_Util_Font__ctor_C1_Util_Font_C1_Util_FontStyle_" data-uid="C1.Util.Font.#ctor(C1.Util.Font,C1.Util.FontStyle)">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_C1_Util_Font_C1_Util_FontStyle_">Font(Font, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object from a other font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_C1_Util_FontSubSet_" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,C1.Util.FontSubSet)">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_C1_Util_FontSubSet_">Font(FontStyle, float, FontSubSet)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_Byte___" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,System.Byte[])">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_Byte___">Font(FontStyle, float, byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_IO_Stream_" data-uid="C1.Util.Font.#ctor(C1.Util.FontStyle,System.Single,System.IO.Stream)">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_C1_Util_FontStyle_System_Single_System_IO_Stream_">Font(FontStyle, float, Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object from a stream containing raw font data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font__ctor_System_String_System_Single_" data-uid="C1.Util.Font.#ctor(System.String,System.Single)">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_System_String_System_Single_">Font(string, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font__ctor_System_String_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.#ctor(System.String,System.Single,C1.Util.FontStyle)">
          <a class="xref" href="C1.Util.Font.-ctor.html#C1_Util_Font__ctor_System_String_System_Single_C1_Util_FontStyle_">Font(string, float, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Util.Font.html">Font</a> object.</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_Util_Font_Bold" data-uid="C1.Util.Font.Bold">
          <a class="xref" href="C1.Util.Font.Bold.html#C1_Util_Font_Bold">Bold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this font is bold.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GdiCharSet" data-uid="C1.Util.Font.GdiCharSet">
          <a class="xref" href="C1.Util.Font.GdiCharSet.html#C1_Util_Font_GdiCharSet">GdiCharSet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets character set code.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GdiVerticalFont" data-uid="C1.Util.Font.GdiVerticalFont">
          <a class="xref" href="C1.Util.Font.GdiVerticalFont.html#C1_Util_Font_GdiVerticalFont">GdiVerticalFont</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets vertical font flag.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Height" data-uid="C1.Util.Font.Height">
          <a class="xref" href="C1.Util.Font.Height.html#C1_Util_Font_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets height of this font in points.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Italic" data-uid="C1.Util.Font.Italic">
          <a class="xref" href="C1.Util.Font.Italic.html#C1_Util_Font_Italic">Italic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this font is italic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Name" data-uid="C1.Util.Font.Name">
          <a class="xref" href="C1.Util.Font.Name.html#C1_Util_Font_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the font name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_OriginalFontName" data-uid="C1.Util.Font.OriginalFontName">
          <a class="xref" href="C1.Util.Font.OriginalFontName.html#C1_Util_Font_OriginalFontName">OriginalFontName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font original name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_RightToLeft" data-uid="C1.Util.Font.RightToLeft">
          <a class="xref" href="C1.Util.Font.RightToLeft.html#C1_Util_Font_RightToLeft">RightToLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets right to left text direction flag.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Size" data-uid="C1.Util.Font.Size">
          <a class="xref" href="C1.Util.Font.Size.html#C1_Util_Font_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the font size in points.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Strikeout" data-uid="C1.Util.Font.Strikeout">
          <a class="xref" href="C1.Util.Font.Strikeout.html#C1_Util_Font_Strikeout">Strikeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this font has a horizontal line through it.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Style" data-uid="C1.Util.Font.Style">
          <a class="xref" href="C1.Util.Font.Style.html#C1_Util_Font_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the font style attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Underline" data-uid="C1.Util.Font.Underline">
          <a class="xref" href="C1.Util.Font.Underline.html#C1_Util_Font_Underline">Underline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether this font is underlined.</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_Util_Font_Create_C1_Excel_XLFont_" data-uid="C1.Util.Font.Create(C1.Excel.XLFont)">
          <a class="xref" href="C1.Util.Font.Create.html#C1_Util_Font_Create_C1_Excel_XLFont_">Create(XLFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Create font using document font with real data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Create_GrapeCity_Documents_Text_Font_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.Create(GrapeCity.Documents.Text.Font,System.Single,C1.Util.FontStyle)">
          <a class="xref" href="C1.Util.Font.Create.html#C1_Util_Font_Create_GrapeCity_Documents_Text_Font_System_Single_C1_Util_FontStyle_">Create(Font, float, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Create font using document font with real data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Create_System_String_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.Create(System.String,System.Single,C1.Util.FontStyle)">
          <a class="xref" href="C1.Util.Font.Create.html#C1_Util_Font_Create_System_String_System_Single_C1_Util_FontStyle_">Create(string, float, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Create font using document font with real data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_Equals_System_Object_" data-uid="C1.Util.Font.Equals(System.Object)">
          <a class="xref" href="C1.Util.Font.Equals.html#C1_Util_Font_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GetBuiltIn_System_String_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Util.Font.GetBuiltIn(System.String,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.Util.Font.GetBuiltIn.html#C1_Util_Font_GetBuiltIn_System_String_System_Boolean_System_Boolean_System_Boolean_">GetBuiltIn(string, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets build-in font by font name and attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GetHashCode" data-uid="C1.Util.Font.GetHashCode">
          <a class="xref" href="C1.Util.Font.GetHashCode.html#C1_Util_Font_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GetResourceFont_C1_Util_BuildInFont_" data-uid="C1.Util.Font.GetResourceFont(C1.Util.BuildInFont)">
          <a class="xref" href="C1.Util.Font.GetResourceFont.html#C1_Util_Font_GetResourceFont_C1_Util_BuildInFont_">GetResourceFont(BuildInFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a font that embedded (build-in) to this library.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GetResourceFont_System_String_" data-uid="C1.Util.Font.GetResourceFont(System.String)">
          <a class="xref" href="C1.Util.Font.GetResourceFont.html#C1_Util_Font_GetResourceFont_System_String_">GetResourceFont(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a font that embedded (build-in) to this library.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_GetTextFormat_C1_Util_Font_System_Drawing_Color_" data-uid="C1.Util.Font.GetTextFormat(C1.Util.Font,System.Drawing.Color)">
          <a class="xref" href="C1.Util.Font.GetTextFormat.html#C1_Util_Font_GetTextFormat_C1_Util_Font_System_Drawing_Color_">GetTextFormat(Font, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <span class="xref">GrapeCity.Documents.Text.TextFormat</span> object by <a class="xref" href="C1.Util.Font.html">Font</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_Font_op_Implicit_C1_Util_Font__C1_Excel_XLFont" data-uid="C1.Util.Font.op_Implicit(C1.Util.Font)~C1.Excel.XLFont">
          <a class="xref" href="C1.Util.Font.op_Implicit.html#C1_Util_Font_op_Implicit_C1_Util_Font__C1_Excel_XLFont">implicit operator XLFont(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Convert implicitly to <span class="xref">C1.Excel.XLFont</span> C1.Excel font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_Font_op_Implicit_C1_Util_Font__GrapeCity_Documents_Text_Font" data-uid="C1.Util.Font.op_Implicit(C1.Util.Font)~GrapeCity.Documents.Text.Font">
          <a class="xref" href="C1.Util.Font.op_Implicit.html#C1_Util_Font_op_Implicit_C1_Util_Font__GrapeCity_Documents_Text_Font">implicit operator Font(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Convert implicitly to drawing font.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
