Struct Panose
A PANOSE-1 10-byte classification vector from the OpenType OS/2 table.
public readonly struct Panose : IEquatable<Panose>
- Implements
- Inherited Members
Remarks
Distance is computed as the sum of per-byte absolute differences and is used as the second stage of font substitution when no exact family match exists.
Constructors
- Panose(ReadOnlySpan<byte>)
Initializes a PANOSE value from ten bytes.
Properties
- IsUnknown
Gets a value indicating whether every byte is zero.
- this[int]
Gets one PANOSE byte by index (0-9).
- Unknown
Gets an all-zero (unknown) PANOSE value.
Methods
- CopyTo(Span<byte>)
Writes this value as ten bytes into a caller-provided span.
- DistanceTo(Panose)
Computes the substitution distance to another PANOSE value.
- Parse(string)
Parses a 20-digit hexadecimal PANOSE value (for example from
w:panose1/@w:val).
- ToString()
Formats the value as twenty uppercase hexadecimal digits.
- TryParse(ReadOnlySpan<char>, out Panose)
Attempts to parse a 20-digit hexadecimal PANOSE value.
- TryParse(string?, out Panose)
Attempts to parse a 20-digit hexadecimal PANOSE value.
Operators
- operator ==(Panose, Panose)
Determines equality.
- operator !=(Panose, Panose)
Determines inequality.