Method Register
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Register(VelvetFontFamily?)
Registers (or replaces) a single family by its name.
public static void Register(VelvetFontFamily? family)
Parameters
familyVelvetFontFamily
Register(IEnumerable<VelvetFontFamily>?, string?)
Registers (or replaces) a batch of families and, optionally, the DefaultFamily, raising FontsChanged once for the whole batch. This is the representation-agnostic entry point: the families can come from anywhere — built in code, a CSV importer, MasterMemory, a ScriptableObject, etc. The registry itself has no knowledge of how the master data is stored.
public static void Register(IEnumerable<VelvetFontFamily>? families, string? defaultFamily = null)
Parameters
familiesIEnumerable<VelvetFontFamily>defaultFamilystring