Back to API Reference
Class
VariationModifier
Inherits:PooledAttributeModifier<byte>
Controls variable font axis values per text range.
Remarks
Parameter: positional axis values in order wght, wdth, ital, slnt, opsz. Use ~ to skip an axis. Each value supports absolute, percentage, or delta: 700 — absolute axis value 150% — percentage of font's default +200 — delta from font's default Examples: 700, ~,80, 700,~,~,-12
public UnitValue Weight{ get; set }Weight axis (wght). A per-range value overrides it; whole-text/bare uses this.
public UnitValue Width{ get; set }Width axis (wdth). A per-range value overrides it; whole-text/bare uses this.
public UnitValue Italic{ get; set }Italic axis (ital). A per-range value overrides it; whole-text/bare uses this.
public UnitValue Slant{ get; set }Slant axis (slnt). A per-range value overrides it; whole-text/bare uses this.
public UnitValue OpticalSize{ get; set }Optical-size axis (opsz). A per-range value overrides it; whole-text/bare uses this.
