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.

    Default MM Font to use in iFrame?

    Scheduled Pinned Locked Moved Requests
    5 Posts 3 Posters 649 Views 3 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.
    • H Offline
      hokie-bird
      last edited by

      I’m working on a solution to display the “Now Playing” information of my multi-room audio system on my MM. Easiest path seems to be displaying a webpage via the iFrame module. That said, I really want the metadata in the iFrame to match the rest of MM appearance/font-wise. The iFrame module does not seem to “natively” inherit the MM font, so I’m looking to hard-code the native MM font into the CSS of the webpage. Can someone provide guidance or suggestions on the name (or equivalent) of the exact font the default modules use? I’ve tried looking thru the main CSS, and find “Roboto” but when I use that font in the CSS, it doesn’t match.

      Thanks in-advance for the consideration.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @hokie-bird
        last edited by

        @hokie-bird I-frame is a hole where the other original page shows thru. you don’t have control of that page, unless it provides that originally

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • H Offline
          hokie-bird
          last edited by

          Thanks, and I think I understand that, so trying to make the actual source webpage that’s displaying in the iFrame match the MM font, as I can control the source webpage via its CSS. Thus my ask for clarity on which font I can use on the source page to make it match.

          S 1 Reply Last reply Reply Quote 0
          • thgmirrorT Offline
            thgmirror
            last edited by

            @hokie-bird try
            ca44a94e-c5b5-420e-ae11-f58a985c2deb-image.png

            Greetings
            Thomas

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @hokie-bird
              last edited by

              @hokie-bird sorry, I missed the question somehow

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 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