<?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[change font of modules (local fonts)]]></title><description><![CDATA[<p dir="auto">hi guys,how i can change fonts of modules using custom.css and use local font?</p>
]]></description><link>https://forum.magicmirror.builders/topic/5505/change-font-of-modules-local-fonts</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 08:12:18 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/5505.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Nov 2017 16:19:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to change font of modules (local fonts) on Tue, 16 Dec 2025 20:54:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dangerousden" aria-label="Profile: dangerousden">@<bdi>dangerousden</bdi></a> look at the css/roboto.css, or the css/fontawesome.css</p>
<p dir="auto">and then main.css to see how they are used</p>
]]></description><link>https://forum.magicmirror.builders/post/129246</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129246</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 16 Dec 2025 20:54:11 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Tue, 16 Dec 2025 20:38:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/epi" aria-label="Profile: epi">@<bdi>epi</bdi></a></p>
<p dir="auto">Did you ever get this working?  I’m having exactly the same issue.  I have the holiday countdown module. We’re off to Disney, so I thought it would be fun to put it in a Disney font. I’ve downloaded one and put it into a fonts folder under MagicMirror.<br />
I have defined it with an @ statement, included the fonts/ source folder and file name, and added it to the countdown module, but it is still not changing the font for that module :(</p>
]]></description><link>https://forum.magicmirror.builders/post/129245</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129245</guid><dc:creator><![CDATA[dangerousden]]></dc:creator><pubDate>Tue, 16 Dec 2025 20:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Tue, 23 Oct 2018 17:17:35 GMT]]></title><description><![CDATA[<p dir="auto">thank you!</p>
]]></description><link>https://forum.magicmirror.builders/post/45769</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45769</guid><dc:creator><![CDATA[epi]]></dc:creator><pubDate>Tue, 23 Oct 2018 17:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Thu, 18 Oct 2018 20:03:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/epi" aria-label="Profile: epi">@<bdi>epi</bdi></a> Now you need to apply your font to various elements of the layout.  All you’ve done to this point is declare the availability of the font.  Try something like this:</p>
<pre><code>body * {
  font-family: "SF";
}
</code></pre>
<p dir="auto">That might get the job done, but there may be more specific rules you need to write to override in other cases.  Try this and see how far it gets you.</p>
]]></description><link>https://forum.magicmirror.builders/post/45621</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45621</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Thu, 18 Oct 2018 20:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Thu, 18 Oct 2018 17:07:03 GMT]]></title><description><![CDATA[<p dir="auto">Still doesn’t work</p>
<pre><code>/*****************************************************
 * Magic Mirror                                      *
 * Custom CSS                                        *
 *                                                   *
 * By Michael Teeuw http://michaelteeuw.nl           *
 * MIT Licensed.                                     *
 *                                                   *
 * Add any custom CSS below.                         *
 * Changes to this files will be ignored by GIT. *
 *****************************************************/

body {	
}

@font-face {
  font-family: "SF";
  font-style: normal;
  font-weight: 100;
  src:
    local("ComicRelief"),
    url("fonts/ComicRelief.ttf") format("truetype");
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/45614</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45614</guid><dc:creator><![CDATA[epi]]></dc:creator><pubDate>Thu, 18 Oct 2018 17:07:03 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Mon, 15 Oct 2018 07:33:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/epi" aria-label="Profile: epi">@<bdi>epi</bdi></a> don’t wrap the<code>@font-face</code> css rule within the <code>body</code> CSS rule. CSS spec says this should work but I’ve found the in most cases browsers just ignore it.</p>
]]></description><link>https://forum.magicmirror.builders/post/45425</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45425</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Mon, 15 Oct 2018 07:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 14 Oct 2018 19:28:58 GMT]]></title><description><![CDATA[<p dir="auto">So, I’ve downloaded <a href="https://www.fontsquirrel.com/fonts/comic-relief" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.fontsquirrel.com/fonts/comic-relief</a> and added a font to</p>
<pre><code>/home/pi/MagicMirror/fonts
</code></pre>
<p dir="auto">And my custom css looks like this</p>
<pre><code> body {	
@font-face {
  font-family: "SF";
  font-style: normal;
  font-weight: 100;
  src:
    local("ComicRelief"),
    url("fonts/ComicRelief.ttf") format("truetype");
}
}
</code></pre>
<p dir="auto">Despite that, font is not seen. What could be the reason?</p>
]]></description><link>https://forum.magicmirror.builders/post/45405</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45405</guid><dc:creator><![CDATA[epi]]></dc:creator><pubDate>Sun, 14 Oct 2018 19:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Wed, 28 Mar 2018 23:56:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bekirs" aria-label="Profile: bekirs">@<bdi>bekirs</bdi></a> You need to use a virtual path to the file, not a physical path.  Change your CSS as follows:</p>
<pre><code>@font-face {
  font-family: "Verdana";
  font-style: normal;
  font-weight: 100;
  src: url("/fonts/Verdana.ttf")  format("truetype");
}
</code></pre>
<p dir="auto">That said, I’m not sure about TrueType support in Chrome, and subsequently Electron.  if this still doesn’t work, you’ll need to convert the font into a supported format, such as <code>woff</code> or <code>woff2</code>. <a href="https://www.fontsquirrel.com/" target="_blank" rel="noopener noreferrer nofollow ugc">Font Squirrel</a> is an online tool that can do it, but you might run into copy protection issues, as Verdana is a licensed font. Do a Google search for <code>web font generator</code> to find other options, or you can even try searching for a woff version of Verdana.</p>
<p dir="auto">Of course, the designer in me is screaming that there are so many nicer type faces suitable for UI than Verdana that are available for free. <a href="https://fonts.google.com/" target="_blank" rel="noopener noreferrer nofollow ugc">Google Fonts</a> has many options that are readily downloadable, and subsequently can be converted to web font formats using Font Squirrel.</p>
<p dir="auto">Good luck!</p>
]]></description><link>https://forum.magicmirror.builders/post/37582</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37582</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Wed, 28 Mar 2018 23:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Wed, 28 Mar 2018 21:28:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bekirs" aria-label="Profile: bekirs">@<bdi>bekirs</bdi></a> Did you try using <code>url("file:///home/pi/MagicMirror/fonts/Verdana.ttf")</code>?</p>
]]></description><link>https://forum.magicmirror.builders/post/37574</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37574</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Wed, 28 Mar 2018 21:28:19 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Wed, 28 Mar 2018 08:10:31 GMT]]></title><description><![CDATA[<p dir="auto">verdana is located in true folder. and after i run npm start dev i could not see any error thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/37516</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37516</guid><dc:creator><![CDATA[bekirs]]></dc:creator><pubDate>Wed, 28 Mar 2018 08:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Wed, 28 Mar 2018 21:26:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bekirs" aria-label="Profile: bekirs">@<bdi>bekirs</bdi></a> My first question: Is Verdana actually located in <code>~/MagicMirror/fonts/Verdana.ttf</code>? If so, you might try <code>url("file:///home/pi/MagicMirror/fonts/Verdana.ttf")</code>. When you run <code>npm start dev</code> in Terminal while in <code>~/MagicMirror</code>, are there any console errors (in Terminal or Electron)?</p>
]]></description><link>https://forum.magicmirror.builders/post/37210</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37210</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Wed, 28 Mar 2018 21:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Mon, 19 Mar 2018 06:15:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ninjabreadman" aria-label="Profile: ninjabreadman">@<bdi>ninjabreadman</bdi></a> said in <a href="/post/37082">change font of modules (local fonts)</a>:</p>
<blockquote>
<p dir="auto">@font-face {<br />
font-family: Verdana;<br />
font-style: normal;<br />
font-weight: 100;<br />
src:<br />
local(“Verdana”),<br />
url(“/home/pi/MagicMirror/fonts/Verdana.ttf”) format(“truetype”);<br />
}</p>
<p dir="auto">.newsfeed {<br />
font-family: Verdana;<br />
}</p>
</blockquote>
<p dir="auto">I wrote below but it didnt work</p>
<p dir="auto">@font-face {<br />
font-family: Verdana;<br />
font-style: normal;<br />
font-weight: 100;<br />
src:<br />
local(“Verdana”),<br />
url(“/home/pi/MagicMirror/fonts/Verdana.ttf”) format(“truetype”);<br />
}</p>
<p dir="auto">.newsfeed {<br />
font-family: Verdana;<br />
}</p>
]]></description><link>https://forum.magicmirror.builders/post/37190</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37190</guid><dc:creator><![CDATA[bekirs]]></dc:creator><pubDate>Mon, 19 Mar 2018 06:15:45 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Fri, 16 Mar 2018 18:22:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bekirs" aria-label="Profile: bekirs">@<bdi>bekirs</bdi></a> <code>@font-face</code> is not a style rule, but declaration (“at-rule”). <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face" target="_blank" rel="noopener noreferrer nofollow ugc">Here’s an explanation of how it works.</a></p>
<p dir="auto">So your code should instead be:</p>
<pre><code>@font-face {
  font-family: Verdana;
  font-style: normal;
  font-weight: 100;
  src:
    local("Verdana"),
    url("/home/pi/MagicMirror/fonts/Verdana.ttf") format("truetype");
}

.newsfeed {
  font-family: Verdana;
}
</code></pre>
<p dir="auto">This <em>avoids</em> using the local version of the <em>Verdana</em> font. Why not use the local <em>Verdana</em> font (or install your desired alternative) and use the below instead?</p>
<pre><code>.newsfeed {
  font-family: Verdana;
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/37082</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37082</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Fri, 16 Mar 2018 18:22:30 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Fri, 16 Mar 2018 14:46:27 GMT]]></title><description><![CDATA[<p dir="auto">hi all,</p>
<p dir="auto">I tried to change my newsfeed font and i added below commands to custom.css but it didnt work. What should i do ?</p>
<p dir="auto">Thanks</p>
<pre><code>.newsfeed {
  font-family: Verdana;
  font-style: normal;
  font-weight: 100;
  src:
    local("Verdana"),
    url("/home/pi/MagicMirror/fonts/Verdana.ttf") format("truetype");
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/37077</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37077</guid><dc:creator><![CDATA[bekirs]]></dc:creator><pubDate>Fri, 16 Mar 2018 14:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 12 Nov 2017 16:45:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/broberg" aria-label="Profile: broberg">@<bdi>broberg</bdi></a> so thanks my friend solved.</p>
]]></description><link>https://forum.magicmirror.builders/post/31037</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31037</guid><dc:creator><![CDATA[foryas]]></dc:creator><pubDate>Sun, 12 Nov 2017 16:45:42 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 12 Nov 2017 16:39:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/foryas" aria-label="Profile: foryas">@<bdi>foryas</bdi></a> open the developer options in electron or check with F12 in your local browser to see the code.</p>
<p dir="auto">But the main module class name are always the name of the module as put in the config file</p>
<p dir="auto">.calendar for calendar<br />
.alarm for alarm<br />
.MMM-Instagram for MMM-Instagram</p>
<p dir="auto">etc etc</p>
]]></description><link>https://forum.magicmirror.builders/post/31036</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31036</guid><dc:creator><![CDATA[broberg]]></dc:creator><pubDate>Sun, 12 Nov 2017 16:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 12 Nov 2017 15:57:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/broberg" aria-label="Profile: broberg">@<bdi>broberg</bdi></a> said in <a href="/post/31027">change font of modules (local fonts)</a>:</p>
<blockquote>
<p dir="auto">.calendar</p>
</blockquote>
<p dir="auto">how i can find class (.calendar for your example) of any module to use that?</p>
]]></description><link>https://forum.magicmirror.builders/post/31035</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31035</guid><dc:creator><![CDATA[foryas]]></dc:creator><pubDate>Sun, 12 Nov 2017 15:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 12 Nov 2017 05:12:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/foryas" aria-label="Profile: foryas">@<bdi>foryas</bdi></a></p>
<pre><code>.calendar {
Font-family : YourFont;
}
</code></pre>
<p dir="auto">That would change the font for the module calendar</p>
]]></description><link>https://forum.magicmirror.builders/post/31027</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31027</guid><dc:creator><![CDATA[broberg]]></dc:creator><pubDate>Sun, 12 Nov 2017 05:12:24 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sun, 12 Nov 2017 02:00:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/foryas" aria-label="Profile: foryas">@<bdi>foryas</bdi></a> you can also do. But you need to understand css. Study it.</p>
]]></description><link>https://forum.magicmirror.builders/post/31026</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31026</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 12 Nov 2017 02:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sat, 11 Nov 2017 20:49:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/broberg" aria-label="Profile: broberg">@<bdi>broberg</bdi></a> if i want to only change font of special module not all?</p>
]]></description><link>https://forum.magicmirror.builders/post/31022</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31022</guid><dc:creator><![CDATA[foryas]]></dc:creator><pubDate>Sat, 11 Nov 2017 20:49:03 GMT</pubDate></item><item><title><![CDATA[Reply to change font of modules (local fonts) on Sat, 11 Nov 2017 18:30:06 GMT]]></title><description><![CDATA[<p dir="auto">try adding add this to custom.css and your font to the fonts folder</p>
<pre><code>@font-face {
  font-family: YourFont;
  font-style: normal;
  font-weight: 100;
  src:
    local("YourFont"),
    url("fonts/Yourfont.ttf") format("truetype");
}

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/31018</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31018</guid><dc:creator><![CDATA[broberg]]></dc:creator><pubDate>Sat, 11 Nov 2017 18:30:06 GMT</pubDate></item></channel></rss>