Source set: Common
public class Settings internal constructor(
/** All settings, unique by [FontVariation.Setting.axisName] */
public val settings: List<Setting>
)
A collection of settings to apply to a single font.
Settings must be unique on Setting.axisName
Functions
merge
Source set: Common
public fun merge(other: Settings?): Settings
Merges the given other settings into this Settings instance.
If there are duplicate axes, settings in other will override settings in this instance.
Parameters
| other | The settings to merge into this instance. If null, this instance is returned. |
merge
Source set: Common
public fun merge(vararg overrides: Setting): Settings
Merges the given overrides into this Settings instance.
If there are duplicate axes, settings in overrides will override settings in this instance. Note that overrides itself must not contain duplicate axes.
Parameters
| overrides | The individual settings to merge into this instance. |
Throws: IllegalArgumentException
if overrides contains duplicate axes.