PeachDrawing.Text

PeachDrawing.Text.Typeface

Typeface.ContentHash Property

A hash of the font data the face reads, as 32 lowercase hexadecimal digits. Two typefaces that read the same data have the same hash, so it can key a cache of things made from a face, such as an embedded copy of it.

public string ContentHash { get; }

Property Value

System.String

Remarks

It is the first 128 bits of the SHA-256 of the data, so two different fonts do not share one, not even when one was made to look like the other; a cache keyed by it cannot be made to serve one font for another. It says nothing of where in the design space of a variable font the face reads (see VariationKey).