How To Add and Enable Custom Font Languages To WordPress 3.9 Visual Post Editor

We are awesome at our services and 97% of our customers continue to choose or refer us. We have created
many websites and some of them are listed below

36 +
World widecustomers
7 +
Skilled Experts
6 +
Years Of Experience
87 +
Successfully projects

Add the following code in your theme functions.php file to add custom font dropdown into your WordPress Visual Post Editor. This is tested on WordPress 3.9 and does not support lower WordPress versions.

add_filter('tiny_mce_before_init', 'font_choices' );
function font_choices( $init ) {
        $init['font_formats'] = 
                'Andale Mono=andale mono,times;'.
                'Arial=arial,helvetica,sans-serif;'.
                'Arial Black=arial black,avant garde;'.
                'Book Antiqua=book antiqua,palatino;'.
                'Comic Sans MS=comic sans ms,sans-serif;'.
                'Courier New=courier new,courier;'.
                'Georgia=georgia,palatino;'.
                'Helvetica=helvetica;'.
                'Impact=impact,chicago;'.
                'Symbol=symbol;'.
                'Tahoma=tahoma,arial,helvetica,sans-serif;'.
                'Terminal=terminal,monaco;'.
                'Times New Roman=times new roman,times;'.
                'Trebuchet MS=trebuchet ms,geneva;'.
                'Verdana=verdana,geneva;'.
                'Webdings=webdings;'.
                'Wingdings=wingdings,zapf dingbats'.
                '';
        return $init;
}

if ( ! function_exists( 'wpex_mce_buttons' ) ) {
	function wpex_mce_buttons( $buttons ) {
		array_unshift( $buttons, 'fontselect' ); // Add Font Select
		return $buttons;
	}
}
add_filter( 'mce_buttons_2', 'wpex_mce_buttons' );