# C1.Util.FontSubSet.FontFeature.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_FontSubSet_FontFeature__ctor_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor*">FontFeature Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_FontSubSet_FontFeature__ctor_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor*"></a>
<h4 id="C1_Util_FontSubSet_FontFeature__ctor_C1_Util_FontSubSet_FeatureTag_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor(C1.Util.FontSubSet.FeatureTag)">FontFeature(FeatureTag)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.FontSubSet.FontFeature.html">FontSubSet.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(FontSubSet.FeatureTag featureTag)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FontSubSet.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="C1.Util.FontSubSet.html">FontSubSet</a>.<a class="xref" href="C1.Util.FontSubSet.FeatureTag.html">FeatureTag</a></td>
      <td><span class="parametername">featureTag</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_FontSubSet_FontFeature__ctor_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor*"></a>
<h4 id="C1_Util_FontSubSet_FontFeature__ctor_C1_Util_FontSubSet_FeatureTag_System_Boolean_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor(C1.Util.FontSubSet.FeatureTag,System.Boolean)">FontFeature(FeatureTag, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.FontSubSet.FontFeature.html">FontSubSet.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(FontSubSet.FeatureTag featureTag, bool enabled)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FontSubSet.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="C1.Util.FontSubSet.html">FontSubSet</a>.<a class="xref" href="C1.Util.FontSubSet.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="C1_Util_FontSubSet_FontFeature__ctor_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor*"></a>
<h4 id="C1_Util_FontSubSet_FontFeature__ctor_C1_Util_FontSubSet_FeatureTag_System_Int32_System_Boolean_" data-uid="C1.Util.FontSubSet.FontFeature.#ctor(C1.Util.FontSubSet.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="C1.Util.FontSubSet.FontFeature.html">FontSubSet.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(FontSubSet.FeatureTag featureTag, int parameter, bool applyLastAlternativeIfNotAvailable = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(featureTag As FontSubSet.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="C1.Util.FontSubSet.html">FontSubSet</a>.<a class="xref" href="C1.Util.FontSubSet.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>
