Announcement

Collapse
No announcement yet.

Shadows 1.X - adding a font

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Shadows 1.X - adding a font

    In my theme-styles.css I have added:

    Code:
    /* TorusNotched - bold */
    @font-face {
    font-family: 'TorusNotched-Bold';
    font-style: bold;
    font-weight: 700;
    src: local('TorusNotched Bold'), local('TorusNotched-Bold'),
    url('TorusNotched-Bold.woff') format('woff')
    }
    I have also tried

    Code:
    /* TorusNotched - bold */
    @font-face {
    font-family: 'TorusNotched-Bold';
    font-style: bold;
    font-weight: 700;
    src: local('TorusNotched Bold'), local('TorusNotched-Bold'),
    url('themes/shadows/ui/css/TorusNotched-Bold.woff') format('woff')
    }
    The TorusNotched-Bold.woff file is in the themes/shadows/ui/css/ folder

    The font is not rendering. I had "assumed" it was because it displayed perfectly on my machine. I discovered it did so because this font was in my system. Why is it not displaying on the site?


    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Hi Leslie,

    I would start by removing the local source references if it is not a font commonly installed on devices and then I would test the URL in the browser to confirm the file is accessible to the browser.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      I would start by removing the local source references if it is not a font commonly installed on devices and then I would test the URL in the browser to confirm the file is accessible to the browser.
      Question - is that why I can see it? That tells it to look for it on my computer?
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Correct
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          Is this the correct format (to remove the local reference)?

          Code:
          /* TorusNotched - bold */
          @font-face {
          font-family: 'TorusNotched-Bold';
          font-style: bold;
          font-weight: 700;
          src: url('themes/shadows/ui/css/TorusNotched-Bold.woff') format('woff');
          }
          Yes, the file is accessible via the browser, LOL, I just downloaded it again.
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Hi Leslie,

            Yes, that looks like the correct format.
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment


              #7
              Thanks! That fixed it.
              Leslie Kirk
              Miva Certified Developer
              Miva Merchant Specialist since 1997
              Previously of Webs Your Way
              (aka Leslie Nord leslienord)

              Email me: [email protected]
              www.lesliekirk.com

              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

              Comment

              Working...
              X