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

Class TtfNameTable

Parsed OpenType "name" table. Exposes the most common font name strings, preferring Windows/Unicode platform records (platformID=3, encodingID=1, languageID=0x0409) over Unicode-BMP (platformID=0) and Macintosh (platformID=1) records. Ref: OpenType spec §5.2.9.

Inheritance
object
TtfTableBase
TtfNameTable
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 TtfNameTable : TtfTableBase

Fields

TableTag

The table tag for the name table.

Declaration
public const string TableTag = "name"
Field Value
Type Description
string

Properties

FamilyName

Font family name (nameID 1), e.g. "Montserrat".

Declaration
public string? FamilyName { get; }
Property Value
Type Description
string

FullName

Full human-readable font name (nameID 4), e.g. "Montserrat Regular".

Declaration
public string? FullName { get; }
Property Value
Type Description
string

PostScriptName

PostScript font name (nameID 6), e.g. "Montserrat-Regular".

Declaration
public string? PostScriptName { get; }
Property Value
Type Description
string

StyleName

Font subfamily / style name (nameID 2), e.g. "Regular".

Declaration
public string? StyleName { get; }
Property Value
Type Description
string

UniqueId

Unique font identifier string (nameID 3).

Declaration
public string? UniqueId { get; }
Property Value
Type Description
string

Version

Font version string (nameID 5).

Declaration
public string? Version { get; }
Property Value
Type Description
string

Methods

Parse(byte[])

Parses the "name" table from its raw bytes.

Declaration
public static TtfNameTable Parse(byte[] rawBytes)
Parameters
Type Name Description
byte[] rawBytes
Returns
Type Description
TtfNameTable
Back to top

DR-IT Software documentation

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

Generated by DocFX