# C1.Util.FontSubSet.TextFormat

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_FontSubSet_TextFormat" data-uid="C1.Util.FontSubSet.TextFormat" class="text-break">FontSubSet.TextFormat Class
</h1>
  <div class="markdown level0 summary"><p>Represents text formatting attributes such as font, language, colors, decorations and so on.</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">FontSubSet.TextFormat</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.html">C1.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="C1_Util_FontSubSet_TextFormat_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FontSubSet.TextFormat</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FontSubSet.TextFormat</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_FontSubSet_TextFormat__ctor" data-uid="C1.Util.FontSubSet.TextFormat.#ctor">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.-ctor.html#C1_Util_FontSubSet_TextFormat__ctor">TextFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.FontSubSet.TextFormat.html">FontSubSet.TextFormat</a>.</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_FontSubSet_TextFormat_BackColor" data-uid="C1.Util.FontSubSet.TextFormat.BackColor">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.BackColor.html#C1_Util_FontSubSet_TextFormat_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text background color. The default is transparent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Font" data-uid="C1.Util.FontSubSet.TextFormat.Font">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Font.html#C1_Util_FontSubSet_TextFormat_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a Font used by this format.</p>
<p>If not null, this value overrides the <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontName.html#C1_Util_FontSubSet_TextFormat_FontName">FontName</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontBold" data-uid="C1.Util.FontSubSet.TextFormat.FontBold">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontBold.html#C1_Util_FontSubSet_TextFormat_FontBold">FontBold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the font should be bolded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontFeatures" data-uid="C1.Util.FontSubSet.TextFormat.FontFeatures">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontFeatures.html#C1_Util_FontSubSet_TextFormat_FontFeatures">FontFeatures</a>
        </td>
        <td class="markdown level1 summary"><p>Provides access to a set of Microsoft OpenType typography properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontItalic" data-uid="C1.Util.FontSubSet.TextFormat.FontItalic">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontItalic.html#C1_Util_FontSubSet_TextFormat_FontItalic">FontItalic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the font should be italicized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontName" data-uid="C1.Util.FontSubSet.TextFormat.FontName">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontName.html#C1_Util_FontSubSet_TextFormat_FontName">FontName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a font family name.</p>
<p>This value is used only if the <a class="xref" href="C1.Util.FontSubSet.TextFormat.Font.html#C1_Util_FontSubSet_TextFormat_Font">Font</a> property is null.</p>
<p>This value is case insensitive.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontSize" data-uid="C1.Util.FontSubSet.TextFormat.FontSize">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontSize.html#C1_Util_FontSubSet_TextFormat_FontSize">FontSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the logical font size, in points or in graphic units.</p>
<p>The defalut value is 12.</p>
<p>See also the description of the <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontSizeInGraphicUnits.html#C1_Util_FontSubSet_TextFormat_FontSizeInGraphicUnits">FontSizeInGraphicUnits</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontSizeInGraphicUnits" data-uid="C1.Util.FontSubSet.TextFormat.FontSizeInGraphicUnits">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontSizeInGraphicUnits.html#C1_Util_FontSubSet_TextFormat_FontSizeInGraphicUnits">FontSizeInGraphicUnits</a>
        </td>
        <td class="markdown level1 summary"><p>/// Gets or sets a value indicating whether <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontSize.html#C1_Util_FontSubSet_TextFormat_FontSize">FontSize</a> specifies the font size in graphic units or in points.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_FontStyle" data-uid="C1.Util.FontSubSet.TextFormat.FontStyle">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.FontStyle.html#C1_Util_FontSubSet_TextFormat_FontStyle">FontStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the flags indicating the desired or emulated style of the font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_ForeColor" data-uid="C1.Util.FontSubSet.TextFormat.ForeColor">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.ForeColor.html#C1_Util_FontSubSet_TextFormat_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text foreground color. The default is black.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_GlyphAdvanceFactor" data-uid="C1.Util.FontSubSet.TextFormat.GlyphAdvanceFactor">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.GlyphAdvanceFactor.html#C1_Util_FontSubSet_TextFormat_GlyphAdvanceFactor">GlyphAdvanceFactor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the scaling factor for the glyph advance value.<p>Valid values are from 0.5 up. The default is 1.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Language" data-uid="C1.Util.FontSubSet.TextFormat.Language">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Language.html#C1_Util_FontSubSet_TextFormat_Language">Language</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value identifying the language system.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_LineGap" data-uid="C1.Util.FontSubSet.TextFormat.LineGap">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.LineGap.html#C1_Util_FontSubSet_TextFormat_LineGap">LineGap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying the explicit line gap (if not null), in graphic units.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Script" data-uid="C1.Util.FontSubSet.TextFormat.Script">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Script.html#C1_Util_FontSubSet_TextFormat_Script">Script</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an OpenType script tag.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Strikethrough" data-uid="C1.Util.FontSubSet.TextFormat.Strikethrough">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Strikethrough.html#C1_Util_FontSubSet_TextFormat_Strikethrough">Strikethrough</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the strikethrough style is applied to the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Tag" data-uid="C1.Util.FontSubSet.TextFormat.Tag">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Tag.html#C1_Util_FontSubSet_TextFormat_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an arbitrary custom data associated with this <a class="xref" href="C1.Util.FontSubSet.TextFormat.html">FontSubSet.TextFormat</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_TextDecorations" data-uid="C1.Util.FontSubSet.TextFormat.TextDecorations">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.TextDecorations.html#C1_Util_FontSubSet_TextFormat_TextDecorations">TextDecorations</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the flags indicating which decorations are applied to the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_TransverseOffset" data-uid="C1.Util.FontSubSet.TextFormat.TransverseOffset">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.TransverseOffset.html#C1_Util_FontSubSet_TextFormat_TransverseOffset">TransverseOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the offset of the text in the orthogonal direction, in graphic units.<p>The default is 0.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_Underline" data-uid="C1.Util.FontSubSet.TextFormat.Underline">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.Underline.html#C1_Util_FontSubSet_TextFormat_Underline">Underline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the text 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_FontSubSet_TextFormat_CopyTo_C1_Util_FontSubSet_TextFormat_" data-uid="C1.Util.FontSubSet.TextFormat.CopyTo(C1.Util.FontSubSet.TextFormat)">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.CopyTo.html#C1_Util_FontSubSet_TextFormat_CopyTo_C1_Util_FontSubSet_TextFormat_">CopyTo(TextFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the current text format settings to another <a class="xref" href="C1.Util.FontSubSet.TextFormat.html">FontSubSet.TextFormat</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_CultureToLanguage_System_Globalization_CultureInfo_" data-uid="C1.Util.FontSubSet.TextFormat.CultureToLanguage(System.Globalization.CultureInfo)">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.CultureToLanguage.html#C1_Util_FontSubSet_TextFormat_CultureToLanguage_System_Globalization_CultureInfo_">CultureToLanguage(CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the Language value corresponding to a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_FontSubSet_TextFormat_ScriptCodeToTag_C1_Util_ScriptCode_System_Boolean_" data-uid="C1.Util.FontSubSet.TextFormat.ScriptCodeToTag(C1.Util.ScriptCode,System.Boolean)">
          <a class="xref" href="C1.Util.FontSubSet.TextFormat.ScriptCodeToTag.html#C1_Util_FontSubSet_TextFormat_ScriptCodeToTag_C1_Util_ScriptCode_System_Boolean_">ScriptCodeToTag(ScriptCode, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.Util.ScriptCode.html">ScriptCode</a> value to the corresponding <a class="xref" href="C1.Util.FontSubSet.ScriptTag.html">FontSubSet.ScriptTag</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
