GithubHelp home page GithubHelp logo

Comments (5)

majodev avatar majodev commented on August 19, 2024

? Please provide a clear description for your encountered error + instructions to reproduce it.

from google-webfonts-helper.

TechInterMezzo avatar TechInterMezzo commented on August 19, 2024

I've used the tool a couple of days ago, but today there seems to be a problem with some woff2 files.
An example is the Oswald font. The file "oswald-v10-latin-300.woff2" is now 5kb smaller (~15kb => ~10kb) and the browser can't render it anymore.

I can't tell, if it's the fault of the tool or Google.

from google-webfonts-helper.

majodev avatar majodev commented on August 19, 2024

There seems to be an issue with the new UserAgent https://github.com/majodev/google-webfonts-helper/blob/master/server/logic/conf.js#L5

I'm not totally sure what the most compatible way to get the woff2 format currently. I've recently updated it, as the old specified UserAgent no longer returned anything...

For refererence:
Old (no longer working): Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/38.0.2125.104 Safari/537.36
New (invalid?): Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

from google-webfonts-helper.

TechInterMezzo avatar TechInterMezzo commented on August 19, 2024

Google seems to deliver latin and latin-ext, even if latin-ext is not requested.

/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: local('Oswald Light'), local('Oswald-Light'), url(https://fonts.gstatic.com/s/oswald/v10/l1cOQ90roY9yC7voEhngDBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: local('Oswald Light'), local('Oswald-Light'), url(https://fonts.gstatic.com/s/oswald/v10/HqHm7BVC_nzzTui2lzQTDVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

Maybe your tool only fetches the first (and wrong) entry, because it expects only latin?

from google-webfonts-helper.

majodev avatar majodev commented on August 19, 2024

@TechInterMezzo perfect - big THX for the heads up!

unicode-range parsing (and splitting up woff2 files) is not yet supported by the utility. This must have been the problem. I've exchanged the UserAgent that fetches these woff2 css files from google to an older Firefox Browser (which supports woff2, but not unicode-range).

Please redownload the font files if you have used this tool in the last 2 days.

from google-webfonts-helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.