wp_get_computed_fluid_typography_value


wp_get_computed_fluid_typography_value ( $args = array() )

Access:
  • private
Parameters:
  • (array) args { Optional. An associative array of values to calculate a fluid formula for font size. Default is empty array. @type string $maximum_viewport_width Maximum size up to which type will have fluidity. @type string $minimum_viewport_width Minimum viewport size from which type will have fluidity. @type string $maximum_font_size Maximum font size for any clamp() calculation. @type string $minimum_font_size Minimum font size for any clamp() calculation. @type int $scale_factor A scale factor to determine how fast a font scales within boundaries. }
Returns:
  • (string|null) A font-size value using clamp() on success. Else, null.
Defined at:

Description

Internal implementation of CSS clamp() based on available min/max viewport width and min/max font sizes.

Related Functions

wp_migrate_old_typography_shape, wp_get_typography_value_and_unit, wp_get_typography_font_size_value, wp_register_typography_support, rest_get_best_type_for_value

Top Google Results

User discussions

wpseek mobile