• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TtfGsubTable

Parsed OpenType "GSUB" table header and feature tag list. Exposes FeatureTags (e.g. "liga", "calt", "dlig") so callers can detect which substitution features are available. Full substitution lookup application is deferred to a future batch.

Inheritance
object
TtfTableBase
TtfGsubTable
Inherited Members
TtfTableBase.Tag
TtfTableBase.RawBytes
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Font.Ttf.Tables
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfGsubTable : TtfTableBase
Remarks

Ref: https://learn.microsoft.com/en-us/typography/opentype/spec/gsub

Fields

TableTag

The table tag for the GSUB table.

Declaration
public const string TableTag = "GSUB"
Field Value
Type Description
string
Remarks

Ref: https://learn.microsoft.com/en-us/typography/opentype/spec/gsub

Properties

FeatureTags

Distinct, lexicographically sorted OpenType feature tags present in the GSUB table's FeatureList (e.g. "calt", "dlig", "liga", "rlig"). May be empty for fonts with a malformed or absent FeatureList.

Declaration
public IReadOnlyList<string> FeatureTags { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

Ref: https://learn.microsoft.com/en-us/typography/opentype/spec/gsub

Methods

Parse(byte[])

Parses the "GSUB" table from its raw bytes.

Declaration
public static TtfGsubTable Parse(byte[] rawBytes)
Parameters
Type Name Description
byte[] rawBytes
Returns
Type Description
TtfGsubTable
Remarks

Ref: https://learn.microsoft.com/en-us/typography/opentype/spec/gsub

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX