Class FdtReader
Parses a game font file.
Assembly: Dalamud.dll​
public class FdtReader
Properties​
FileHeader​
Gets the header of this file.
public FdtReader.FdtHeader FileHeader { get; init; }
FontHeader​
Gets the font header of this file.
public FdtReader.FontTableHeader FontHeader { get; init; }
KerningHeader​
Gets the kerning table header of this file.
public FdtReader.KerningTableHeader KerningHeader { get; init; }
Glyphs​
Gets all the glyphs defined in this file.
public List<FdtReader.FontTableEntry> Glyphs { get; init; }
Distances​
Gets all the kerning entries defined in this file.
public List<FdtReader.KerningTableEntry> Distances { get; init; }
Methods​
FindGlyphIndex(int)​
Finds the glyph index for the corresponding codepoint.
public int FindGlyphIndex(int codepoint)
Returns​
System.Int32: Corresponding index, or a negative number according to System.Collections.Generic.List1.BinarySearch(System.Int32,System.Int32,0,System.Collections.Generic.IComparer<0>)`.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Int32 | codepoint | Unicode codepoint (UTF-32 value). |
FindGlyph(int)​
Finds glyph definition for corresponding codepoint.
public FdtReader.FontTableEntry? FindGlyph(int codepoint)
Returns​
System.Nullable<Dalamud.Interface.GameFonts.FdtReader.FontTableEntry>: Corresponding FontTableEntry, or null if not found.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Int32 | codepoint | Unicode codepoint (UTF-32 value). |
GetGlyph(int)​
Returns glyph definition for corresponding codepoint.
public FdtReader.FontTableEntry GetGlyph(int codepoint)
Returns​
Dalamud.Interface.GameFonts.FdtReader.FontTableEntry: Corresponding FontTableEntry, or that of a fallback character.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Int32 | codepoint | Unicode codepoint (UTF-32 value). |
GetDistance(int, int)​
Returns distance adjustment between two adjacent characters.
public int GetDistance(int codepoint1, int codepoint2)
Returns​
System.Int32: Supposed distance adjustment between given characters.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Int32 | codepoint1 | Left character. |
System.Int32 | codepoint2 | Right character. |