Method FindClosestWeight
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
FindClosestWeight(VelvetFontWeight)
Picks the entry whose weight is closest to
requested. Ties resolve to the heavier entry (matching CSS, which rounds a
midpoint up). Returns null only when the family has no entries.
public VelvetFontWeightEntry? FindClosestWeight(VelvetFontWeight requested)
Parameters
requestedVelvetFontWeight