<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Come aggiungere nuovi @font-face in tinyMCE Advance]]></title><description><![CDATA[<p dir="auto">Un saluto a tutti. Sto impazzendo nel cercare come aggiungere un @font-face Kit di un nuovo font preso da fontsquirrel in tinyMCE Advance . Cercando in rete ho trovato un sacco di guide ma che non mi hanno portato da nessuna parte. Al momento ho aggiunto nel style.css del tema questo dopo aver inserito i relativi file del font nella cartella font del mio tema wordpress.</p>
<p dir="auto">@font-face {</p>
<pre><code>font-family: 'existencestencil_light';

src: url('font/Existence-StencilLight-webfont.eot');

src: url('font/Existence-StencilLight-webfont.eot?#iefix') format('embedded-opentype'),

     url('font/Existence-StencilLight-webfont.woff') format('woff'),

     url('font/Existence-StencilLight-webfont.ttf') format('truetype'),

     url('font/Existence-StencilLight-webfont.svg#existencestencil_light') format('svg');

font-weight: normal;

font-style: normal;
</code></pre>
<p dir="auto">}</p>
<p dir="auto">fatto questo sono andato ad inserire la seguente funzione in functions.php</p>
<p dir="auto">// Add custom Fonts to the Fonts list<br />
if ( ! function_exists( 'wpex_mce_fonts_array' ) ) {<br />
function wpex_mce_fonts_array( $initArray ) {<br />
$initArray['font_formats'] = 'Existencestencil=existencestencil_light;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;Wingdings=wingdings,zapf dingbats';<br />
return $initArray;<br />
}<br />
}<br />
add_filter( 'tiny_mce_before_init', 'wpex_mce_fonts_array' );</p>
<p dir="auto">Questa funzione mi ha permesso di vedere in tinyMCE tra i vari font anche quello da me aggiunto ovvero existencestencil_light ma qunado vado a selezionare un testo e cerco di cambiare font questo cambia in un font che non è quello che ho caricato ed anche nell'anteprima della finestra dropdown non c'è il font che ho messo.Spero che voi abbiate qualche suggerimento perchè non so più dove sbattere la testa.<br />
Grazie in anticipo per qualsiasi aiuto.</p>
]]></description><link>https://dev.connect.gt/topic/214552/come-aggiungere-nuovi-font-face-in-tinymce-advance</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 00:44:11 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/214552.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 May 2015 20:24:02 GMT</pubDate><ttl>60</ttl></channel></rss>