Skip to main content

Struct FdtReader.FontTableEntry

Glyph table entry.

Assembly: Dalamud.dll
View Source
Declaration
public struct FdtReader.FontTableEntry : IComparable<FdtReader.FontTableEntry>

Implements:
System.IComparable<Dalamud.Interface.GameFonts.FdtReader.FontTableEntry>

Properties

TextureFileIndex

Gets the index of the file among all the backing texture files.

View Source
Declaration
public int TextureFileIndex { get; }

TextureChannelIndex

Gets the channel index in the backing texture file.

View Source
Declaration
public int TextureChannelIndex { get; }

TextureChannelByteIndex

Gets the byte index in a multichannel pixel corresponding to the channel.

View Source
Declaration
public int TextureChannelByteIndex { get; }

AdvanceWidth

Gets the advance width of this character.

View Source
Declaration
public int AdvanceWidth { get; }

CharInt

Gets the Unicode codepoint of the character for this entry in int type.

View Source
Declaration
public int CharInt { get; }

Char

Gets the Unicode codepoint of the character for this entry in char type.

View Source
Declaration
public char Char { get; }

Fields

TextureChannelOrder

Mapping of texture channel index to byte index.

View Source
Declaration
public static readonly int[] TextureChannelOrder

CharUtf8

Integer representation of a Unicode character in UTF-8 in reverse order, read in little endian.

View Source
Declaration
public int CharUtf8

CharSjis

Integer representation of a Shift_JIS character in reverse order, read in little endian.

View Source
Declaration
public ushort CharSjis

TextureIndex

Index of backing texture.

View Source
Declaration
public ushort TextureIndex

TextureOffsetX

Horizontal offset of glyph image in the backing texture.

View Source
Declaration
public ushort TextureOffsetX

TextureOffsetY

Vertical offset of glyph image in the backing texture.

View Source
Declaration
public ushort TextureOffsetY

BoundingWidth

Bounding width of this glyph.

View Source
Declaration
public byte BoundingWidth

BoundingHeight

Bounding height of this glyph.

View Source
Declaration
public byte BoundingHeight

NextOffsetX

Distance adjustment for drawing next character.

View Source
Declaration
public sbyte NextOffsetX

CurrentOffsetY

Distance adjustment for drawing current character.

View Source
Declaration
public sbyte CurrentOffsetY

Methods

CompareTo(FontTableEntry)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

View Source
Declaration
public int CompareTo(FdtReader.FontTableEntry other)
Returns

System.Int32: A value that indicates the relative order of the objects being compared. The return value has these meanings:

<table><thead><tr><th class="term"> Value</th><th class="description"> Meaning</th></tr></thead><tbody><tr><td class="term"> Less than zero</td><td class="description"> This instance precedes <code class="paramref">other</code> in the sort order.</td></tr><tr><td class="term"> Zero</td><td class="description"> This instance occurs in the same position in the sort order as <code class="paramref">other</code>.</td></tr><tr><td class="term"> Greater than zero</td><td class="description"> This instance follows <code class="paramref">other</code> in the sort order.</td></tr></tbody></table>

Parameters
TypeNameDescription
Dalamud.Interface.GameFonts.FdtReader.FontTableEntryotherAn object to compare with this instance.

Implements

  • System.IComparable<Dalamud.Interface.GameFonts.FdtReader.FontTableEntry>