Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7403885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:10:30+00:00 2026-05-29T05:10:30+00:00

sometimes web-fonts don’t load (for instance if hosted on google fonts) and fallbacks may

  • 0

sometimes web-fonts don’t load (for instance if hosted on google fonts)
and fallbacks may need special treatment, because they can be consistently different from other specified fonts

for instance:

font-family:'webfontname', 'winfont', 'linuxfont', sans-serif;

now the webfont should have

letter-spacing:2px;

but winfont should have

letter-spacing:-4px;

how can I manage this?

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:10:31+00:00Added an answer on May 29, 2026 at 5:10 am

    You’re using Google Web Fonts, so I suggest using the WebFont Loader, which will allow you to, for example, apply different CSS depending on whether the font is loading or loaded.

    Here’s a minimal example based on the code from my second link:

    http://jsbin.com/izadif/ (spam refresh to see it)

    <!DOCTYPE html>
    <html>
      <head>
        <script type="text/javascript">
          WebFontConfig = {
            google: { families: [ 'Cantarell' ] }
          };
          (function() {
            var wf = document.createElement('script');
            wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
                '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
            wf.type = 'text/javascript';
            wf.async = 'true';
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(wf, s);
          })();
        </script>
        <style type="text/css">
          .wf-loading h1 {
            font-family: serif;
            font-size: 16px;
            color: red;
            letter-spacing: 20px;
          }
          .wf-active h1 {
            font-family: 'Cantarell', serif;
            font-size: 16px;
            letter-spacing: 2px;
          }
        </style>
      </head>
      <body>
        <h1>This is using Cantarell</h1>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes, I come across certain web development frameworks which don't provide an authentication feature,
I don't have phpMyAdmin installed in my web site. Sometimes I was doing some
My main web application is on apache, but sometimes I need to import some
I have a web page displaying data using dojo datagrid. Sometimes, users need to
In web design I use MVC pattern, but sometimes I need to create non-web
My servlet-based web-app sometimes fails to close Log4j log files when redeployed, leaking to
Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why?
Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we
I am using a xml web service on my web app and sometimes remote
I have a web page that includes a bunch of images. Sometimes the image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.