@simoncozens/fonttypes
    Preparing search index...

    Function normalizeValue

    • Normalize a single designspace value to a normalized value.

      Parameters

      • designValue: DesignspaceCoordinate

        The designspace coordinate to normalize

      • axis: Axis

        The axis definition to use for normalization

      • extrapolate: boolean = false

        Whether to allow extrapolation outside the axis bounds

      Returns NormalizedCoordinate

      The corresponding normalized coordinate

      normalizeValue(400, { tag: 'wght', min: 100, default: 400, max: 900 });
      // Returns 0.0