TextStudioGlyphImageIdentity
public readonly struct TextStudioGlyphImageIdentityStable exact rasterization identity. ClusterText is the complete UTF-16 cluster, including ligatures and joiners; a Unicode scalar is not a substitute.
Constructors
Section titled “Constructors”
TextStudioGlyphImageIdentity(string, int, int, string, string, string)
Section titled “TextStudioGlyphImageIdentity(string, int, int, string, string, string)”public TextStudioGlyphImageIdentity(string fontContentHash, int faceIndex, int glyphIndex, string clusterText, string paletteIdentity = "", string variationIdentity = "")Identifies exact glyph pixels by font content, face, glyph, complete cluster, palette, and variation.
Parameters
| Name | Type |
|---|---|
fontContentHash | System.String |
faceIndex | System.Int32 |
glyphIndex | System.Int32 |
clusterText | System.String |
paletteIdentity | System.String |
variationIdentity | System.String |
Methods
Section titled “Methods”
Equals(TextStudioGlyphImageIdentity)
Section titled “Equals(TextStudioGlyphImageIdentity)”public bool Equals(TextStudioGlyphImageIdentity other)Parameters
| Name | Type |
|---|---|
other | TextStudio.TextStudioGlyphImageIdentity |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj | System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Properties
Section titled “Properties”
FontContentHash
Section titled “FontContentHash”public string FontContentHash { get; }Returns
System.String
FaceIndex
Section titled “FaceIndex”public int FaceIndex { get; }Returns
System.Int32
GlyphIndex
Section titled “GlyphIndex”public int GlyphIndex { get; }Returns
System.Int32
ClusterText
Section titled “ClusterText”public string ClusterText { get; }Returns
System.String
PaletteIdentity
Section titled “PaletteIdentity”public string PaletteIdentity { get; }Returns
System.String
VariationIdentity
Section titled “VariationIdentity”public string VariationIdentity { get; }Returns
System.String
IsValid
Section titled “IsValid”public bool IsValid { get; }Returns
System.Boolean