////
/// (c) hidoo | MIT License
/// @group font features
////

@use "sass:meta";

/// use settings of initialized font
/// @param {String} $style ["normal"] - setting for `font-style`
/// @param {String|Number} $weight ["normal"] - setting for `font-weight`
///
/// @deprecated
///
/// @example scss - scss inputs
///   .selector {
///     @include mixin.font-initialize();
///   }
///
/// @example css - css outputs
///   .selector {
///     font-style: normal;
///     font-weight: normal;
///   }
///
@mixin initialize($style: "normal", $weight: "normal") {
  @warn "[DEPRECATED] mixin.font-initialize is deprecated.";

  @if meta.type-of($style) == "string" and $style != "" {
    font-style: #{$style};
  }

  @if (meta.type-of($weight) == "string" and $weight != "") or
    meta.type-of($weight) ==
    "number"
  {
    font-weight: #{$weight};
  }
}
