Table of Contents

Method Resolve

Namespace
Velvet
Assembly
Velvet.Docs.dll

Resolve(string?, VelvetFontWeight, bool)

Resolves a font request to a ResolvedFont. When family is null the DefaultFamily is used. Returns a result with HasAsset false (but meaningful residual flags) when no asset is registered for the request — the caller then falls back to the binary -unity-font-style threshold.

public static ResolvedFont Resolve(string? family, VelvetFontWeight weight, bool italic)

Parameters

family string
weight VelvetFontWeight
italic bool

Returns

ResolvedFont

Resolve(string?, VelvetFontWeight, bool, float)

Resolve(string?, VelvetFontWeight, bool) for a font-stretch of stretch percent: the entries of the width nearest the request are searched first, as CSS's font matching settles the width before the style and the weight.

public static ResolvedFont Resolve(string? family, VelvetFontWeight weight, bool italic, float stretch)

Parameters

family string
weight VelvetFontWeight
italic bool
stretch float

Returns

ResolvedFont