Skip to content

TextStudioGlyphImageIdentity

StructTextStudioTextStudio
public readonly struct TextStudioGlyphImageIdentity

Stable exact rasterization identity. ClusterText is the complete UTF-16 cluster, including ligatures and joiners; a Unicode scalar is not a substitute.

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

public bool Equals(TextStudioGlyphImageIdentity other)

Parameters

Name Type
other TextStudio.TextStudioGlyphImageIdentity

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

public string FontContentHash { get; }

Returns

System.String

public int FaceIndex { get; }

Returns

System.Int32

public int GlyphIndex { get; }

Returns

System.Int32

public string ClusterText { get; }

Returns

System.String

public string PaletteIdentity { get; }

Returns

System.String

public string VariationIdentity { get; }

Returns

System.String

public bool IsValid { get; }

Returns

System.Boolean