MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    compliments font problem

    Scheduled Pinned Locked Moved Custom CSS
    5 Posts 2 Posters 3.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mizban
      last edited by

      hi guys. here is my custom css, but it dosent work, plz help!

      @font-face {
      font-family: nazanin;
      src:local (“nazanin”),
      url(“/home/pi/MagicMirror/fonts/nazanin/nazanin.woff”)format(“WOFF”);
      font-weight: 100;
      font-style: normal;

      }
      .compliments {
      font-family: nazanin;
      }

      pjkoelemanP 1 Reply Last reply Reply Quote 0
      • pjkoelemanP Offline
        pjkoeleman @mizban
        last edited by pjkoeleman

        @mizban In your custom.css put the following line with your font as the first line of the custom.css.
        When there is a space in the filename replace it with a ´+'.

        /* Font for compliments, needs to be the first line !!! */
        @import url('https://fonts.googleapis.com/css?family=Allerta+Stencil');
        

        In the settings for your compliments, in the custom.css, set the fonts with the following line, together with other settings like font-size etc.

        font-family				: 'Allerta Stencil', serif;	
        

        Thats how I do it with a google font.

        1 Reply Last reply Reply Quote 0
        • M Offline
          mizban
          last edited by

          @pjkoeleman said in compliments font problem:

          @import url(‘https://fonts.googleapis.com/css?family=Allerta+Stencil’);

          i tried below, result: it works only for calendar not for newsfeed and compliments??? why?

          @import url(‘https://fonts.googleapis.com/css?family=Allerta+Stencil’);
          body{
          margin: 20px;
          position: absolute;
          height: calc(100% - 20px);
          width: calc(100% - 20px);
          line-height: 1.5em;
          -webkit-font-smoothing: antialiased;
          }
          .calendar {
          font-family: ‘allerta stencil’, serif;
          }
          .compliments {
          font-family: ‘allerta stencil’, serif;
          }
          .newsfeed {
          font-family: ‘allerta stencil’, serif;
          }

          pjkoelemanP 1 Reply Last reply Reply Quote 0
          • pjkoelemanP Offline
            pjkoeleman @mizban
            last edited by

            @mizban When you want your compliments in this font try;

            /* Compliments */
            .compliments .xlarge {
              font-family	: 'Allerta Stencil', serif;
            }
            

            This works for me

            1 Reply Last reply Reply Quote 0
            • M Offline
              mizban
              last edited by

              thank you very much pjkoeleman, for help! i tried:
              .compliments div {…} and it works.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy