/**
  * Renders a list of all available weights for a selected font.
  *
  * @since  1.6.3
  * @param  string $font   The current selected font.
  * @param  string $weight The current selected weight.
  * @return void
  */
 public static function display_select_weight($font, $weight)
 {
     if ($font == 'Default') {
         echo '<option value="default">' . __('Default', 'fl-builder') . '</option>';
     } else {
         if (array_key_exists($font, FLBuilderFontFamilies::$system)) {
             foreach (FLBuilderFontFamilies::$system[$font]['weights'] as $variant) {
                 echo '<option value="' . $variant . '" ' . selected($variant, $weight) . '>' . FLBuilderFonts::get_weight_string($variant) . '</option>';
             }
         } else {
             foreach (FLBuilderFontFamilies::$google[$font] as $variant) {
                 echo '<option value="' . $variant . '" ' . selected($variant, $weight) . '>' . FLBuilderFonts::get_weight_string($variant) . '</option>';
             }
         }
     }
 }