Struct FontResolution
The detailed outcome of resolving one logical font request: the requested family, the family actually selected, the resolution step that succeeded, and — for non-exact outcomes — a PANOSE distance or the exact-metric-match flag. This is what a preflight report entry carries and what an end-of-conversion substitution summary aggregates.
public readonly struct FontResolution : IEquatable<FontResolution>
- Implements
- Inherited Members
Properties
- IsExactMetricMatch
Gets a value indicating whether the substitute is a curated metric-compatible match (identical advance widths). True only for MetricCompatible.
- IsSubstitution
Gets a value indicating whether the requested family was substituted (anything other than an exact embedded or system match).
- NeedsSyntheticBold
Gets a value indicating whether synthetic bold is simulated on the selected face.
- NeedsSyntheticItalic
Gets a value indicating whether synthetic italic is simulated on the selected face.
- Outcome
Gets the resolution step that succeeded.
- PanoseDistance
Gets the PANOSE distance to the selected face for PanoseNearest (and the ultimate fallback when a PANOSE hint was supplied); zero otherwise.
- RequestedFamily
Gets the family the caller requested.
- ResolvedFamily
Gets the family that was actually selected (equals RequestedFamily for exact matches).
Methods
- ToString()
Formats the resolution for diagnostics.
Operators
- operator ==(FontResolution, FontResolution)
Determines equality.
- operator !=(FontResolution, FontResolution)
Determines inequality.