# GrapeCity.Documents.Text.FontFeature.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_FontFeature__ctor_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor*">FontFeature Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_FontFeature__ctor_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_FontFeature__ctor_GrapeCity_Documents_Text_FeatureTag_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor(GrapeCity.Documents.Text.FeatureTag)">FontFeature(FeatureTag)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Text.FontFeature.html">FontFeature</a>, enabled by default.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontFeature(FeatureTag featureTag)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FeatureTag)</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="GrapeCity.Documents.Text.FeatureTag.html">FeatureTag</a></td>
      <td><span class="parametername">featureTag</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_FontFeature__ctor_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_FontFeature__ctor_GrapeCity_Documents_Text_FeatureTag_System_Boolean_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor(GrapeCity.Documents.Text.FeatureTag,System.Boolean)">FontFeature(FeatureTag, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Text.FontFeature.html">FontFeature</a> with a value indicating whether the feature is enable or disabled.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontFeature(FeatureTag featureTag, bool enabled)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FeatureTag, enabled 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="GrapeCity.Documents.Text.FeatureTag.html">FeatureTag</a></td>
      <td><span class="parametername">featureTag</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">enabled</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_FontFeature__ctor_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor*"></a>
<h4 id="GrapeCity_Documents_Text_FontFeature__ctor_GrapeCity_Documents_Text_FeatureTag_System_Int32_System_Boolean_" data-uid="GrapeCity.Documents.Text.FontFeature.#ctor(GrapeCity.Documents.Text.FeatureTag,System.Int32,System.Boolean)">FontFeature(FeatureTag, int, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Text.FontFeature.html">FontFeature</a> with the specified 1-based position of alternate glyph ID.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontFeature(FeatureTag featureTag, int parameter, bool applyLastAlternativeIfNotAvailable = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FeatureTag, parameter As Integer, Optional applyLastAlternativeIfNotAvailable As Boolean = True)</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="GrapeCity.Documents.Text.FeatureTag.html">FeatureTag</a></td>
      <td><span class="parametername">featureTag</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">parameter</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">applyLastAlternativeIfNotAvailable</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
