Appearance
Function: makeRegistryResolver() ​
makeRegistryResolver(
registry,onHeuristic?):MetricsResolver
A MetricsResolver backed by a registry: exact metrics for a registered face, otherwise the shared heuristic fallback (with onHeuristic told which face it stood in for). A run with no fontFace at all resolves to undefined, which the callers treat as unmeasurable.
Parameters ​
| Parameter | Type |
|---|---|
registry | FontMetricsRegistry |
onHeuristic? | (face) => void |