<?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 Fonts]]></title><description><![CDATA[<p dir="auto">Hello everyone,<br />
I know this is a basic question but I wasn’t able to make it :(<br />
Basically I want to change font in some (or all) modules, so far this is what I have done in my custom.css file:</p>
<pre><code>@font-face {
        font-family: SF;
        src: url("/home/pi/.fonts/SFProDisplay-Medium.ttf") format("ttf");
        font-weight: normal;
        font-style: medium;
}

.newsfeed {
        font-family: SF;
}

.compliments {
        font-family: SF;
}

.calendar {
        font-family: SF;
}
</code></pre>
<p dir="auto">And this is my font permissions in my ~/.fonts folder:</p>
<pre><code>-rw-r--r-- 1 pi pi 499572 Sep 16 19:29 SFProDisplay-Medium.ttf
</code></pre>
<p dir="auto">The issue is that whatever font I try it doesn’t work (even standard, already installed, fonts), but instead a default module is loaded…<br />
Any help?<br />
Lorenzo</p>
]]></description><link>https://forum.magicmirror.builders/topic/8758/change-fonts</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 04:39:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8758.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Sep 2018 18:19:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ,Change Fonts on Mon, 03 Jun 2024 16:58:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tazdev" aria-label="Profile: TazDev">@<bdi>TazDev</bdi></a> Thanks! This is exactly what I needed to change my MagicMirror so it displays <a href="http://davidocchino.com/portfolio/typography/aurebesh.html" target="_blank" rel="noopener noreferrer nofollow ugc">Aurabesh</a> for some of the data.</p>
]]></description><link>https://forum.magicmirror.builders/post/118113</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118113</guid><dc:creator><![CDATA[davidgagne]]></dc:creator><pubDate>Mon, 03 Jun 2024 16:58:24 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Sun, 29 May 2022 19:23:19 GMT]]></title><description><![CDATA[<p dir="auto">what I inserted in my custom.css</p>
<pre><code>:root {
        --font-primary: "SF-Compact";
        --font-secondary: "SF-Pro";
}

@font-face {
  font-family: "SF-Compact";
  font-style: normal;
  src:
    local("SF-Compact"),
    url("/fonts/SF-Compact.ttf") format("truetype");
}

@font-face {
  font-family: "SF-Pro";
  font-style: normal;
  src:
    local("SF-Pro"),
    url("/fonts/SF-Pro.ttf") format("truetype");
}
</code></pre>
<p dir="auto">both files I extracted from my Mac and copied it to <code> ~/MagicMirror/fonts</code></p>
]]></description><link>https://forum.magicmirror.builders/post/102071</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102071</guid><dc:creator><![CDATA[TazDev]]></dc:creator><pubDate>Sun, 29 May 2022 19:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Mon, 17 Sep 2018 11:06:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> my solution  works.<br />
For the web server is the Magic Mirror directory the “root” directory. So you have to create the fonts directory in the Magic Mirror directory.</p>
]]></description><link>https://forum.magicmirror.builders/post/44497</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44497</guid><dc:creator><![CDATA[PhilReis]]></dc:creator><pubDate>Mon, 17 Sep 2018 11:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Mon, 17 Sep 2018 07:49:37 GMT]]></title><description><![CDATA[<p dir="auto">I finally did it :)<br />
I don’t know why but if I want to declare my font-face in my custom.css file the fonts folder containing all my fonts must be in the same directory or in a sub-directory.<br />
Now everything works<br />
Thank you all guys</p>
]]></description><link>https://forum.magicmirror.builders/post/44495</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44495</guid><dc:creator><![CDATA[Lorenzo_Zappa]]></dc:creator><pubDate>Mon, 17 Sep 2018 07:49:37 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Mon, 17 Sep 2018 07:41:42 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I have found a way to make it work, but I don’t like it very much…<br />
Basically I have to add my lines of code in this file:</p>
<pre><code>/home/pi/MagicMirror/fonts/roboto.css
</code></pre>
<p dir="auto">Like this:</p>
<pre><code>@font-face {
  font-family: SF;
  font-style: normal;
  font-weight: 100;
  src:
    local("SF"),
    url("SF/SFProDisplay-LightItalic.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100;
  src:
    local("Roboto Thin"),
    local("Roboto-Thin"),
    url("node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff2") format("woff2"),
    url("node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff") format("woff"),
    url("node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.ttf") format("truetype");
}
</code></pre>
<p dir="auto">And then everything works.<br />
Any solution without using this work around? I don’t like it very much, and it is not so clean.<br />
Thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/44494</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44494</guid><dc:creator><![CDATA[Lorenzo_Zappa]]></dc:creator><pubDate>Mon, 17 Sep 2018 07:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Mon, 17 Sep 2018 07:03:43 GMT]]></title><description><![CDATA[<p dir="auto">Better use an absolute path (as you did oiginally) instead of the relative one philreis suggested</p>
<pre><code>@font-face {
  font-family: "MyFont";
  font-style: normal;
  font-weight: 100;
  src:
    local("SF-Pro-Display-Light"),
    url("/home/pi/.fonts/SF-Pro-Display-Light.otf") format("truetype");
}
</code></pre>
<p dir="auto">The path philreis suggested cannot work as it is.</p>
]]></description><link>https://forum.magicmirror.builders/post/44491</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44491</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Mon, 17 Sep 2018 07:03:43 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Mon, 17 Sep 2018 05:44:34 GMT]]></title><description><![CDATA[<p dir="auto">Try to put your fonts directory in the Magic Mirror directory.</p>
]]></description><link>https://forum.magicmirror.builders/post/44489</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44489</guid><dc:creator><![CDATA[PhilReis]]></dc:creator><pubDate>Mon, 17 Sep 2018 05:44:34 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Sun, 16 Sep 2018 19:32:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philreis" aria-label="Profile: philreis">@<bdi>philreis</bdi></a> unfortunately nothing changes…<br />
Still not working</p>
]]></description><link>https://forum.magicmirror.builders/post/44478</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44478</guid><dc:creator><![CDATA[Lorenzo_Zappa]]></dc:creator><pubDate>Sun, 16 Sep 2018 19:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to ,Change Fonts on Sun, 16 Sep 2018 18:47:23 GMT]]></title><description><![CDATA[<p dir="auto">Try this:</p>
<pre><code>@font-face {
  font-family: "MyFont";
  font-style: normal;
  font-weight: 100;
  src:
    local("SF-Pro-Display-Light"),
    url("/fonts/SF-Pro-Display-Light.otf") format("truetype");
}
</code></pre>
<p dir="auto">and i have change this too:</p>
<pre><code>.thin {
  font-family: "MyFont";
  font-weight: 100;
}

.light {
  font-family: "MyFont";
  font-weight: 300;
}

.regular {
  font-family: "MyFont";
  font-weight: 400;
}

.bold {
  font-family: "MyFont";
  font-weight: 700;
}

</code></pre>
<p dir="auto">hope it helps.</p>
]]></description><link>https://forum.magicmirror.builders/post/44477</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44477</guid><dc:creator><![CDATA[PhilReis]]></dc:creator><pubDate>Sun, 16 Sep 2018 18:47:23 GMT</pubDate></item></channel></rss>