array( 'css' => 'Arial' ), 'helvetica' => array( 'css' => 'Helvetica' ), 'tahoma' => array( 'css' => 'Tahoma' ), 'verdana' => array( 'css' => 'Verdana' ), 'trebuchet_ms' => array( 'css' => 'Trebuchet MS' ), 'georgia' => array( 'css' => 'Georgia' ), 'times' => array( 'css' => 'Times New Roman' ), 'palatino' => array( 'css' => 'Palatino' ), ); $font_choices = array( 'arial' => 'Arial', 'helvetica' => 'Helvetica', 'tahoma' => 'Tahoma', 'verdana' => 'Verdana', 'trebuchet_ms' => 'Trebuchet MS', 'georgia' => 'Georgia', 'times' => 'Times New Roman', 'palatino' => 'Palatino', ); foreach( $google_fonts as $gfont ) { $key = strtolower( str_replace( ' ' , '_', $gfont->family ) ); $fonts[ $key ] = array( 'css' => $gfont->family, 'link' => $gfont->link, ); $font_choices[$key] = $gfont->family; } if( empty( $id ) ) { return $font_choices; } else { return $fonts[$id]; } }