TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Google Fonts Checker

32 pointsby dcooperover 2 years ago
I built a free tool you can use to check if a website is using Google Fonts. It tests the website using headless Chrome (Puppeteer), so all methods of font loading are captured, not just hardcoded references.

9 comments

huhtenbergover 2 years ago
&gt; <i>The first reason is user-privacy.</i><p>And yet the site itself embeds googletagmanager.com and cloudflareinsights.com assets. Oh, the irony.
评论 #33833271 未加载
lukecarrover 2 years ago
I&#x27;ve found that for this sort of thing, @next&#x2F;font (<a href="https:&#x2F;&#x2F;beta.nextjs.org&#x2F;docs&#x2F;optimizing&#x2F;fonts" rel="nofollow">https:&#x2F;&#x2F;beta.nextjs.org&#x2F;docs&#x2F;optimizing&#x2F;fonts</a>) is a pretty handy library (from Vercel) for Next.js projects. You can import Google Fonts as simple as:<p><pre><code> import { Roboto } from &#x27;@next&#x2F;font&#x2F;google&#x27; const { className } = Roboto({ weight: &#x27;500&#x27; }) </code></pre> Now you can add this class name to any React elements and they&#x27;ll have the Roboto font. Next.js will handle all of the self-hosting and wiring behind-the-scenes (i.e. no requests made to Google from the client).<p>Believe this was one of the announcements to come out of the most recent Next.js conference, so info may only be available on the beta version of their docs site (linked above).
sandebertover 2 years ago
I&#x27;m not sure how interesting this is, but considering the result urls are sequential, it&#x27;s very simple to see what sites have been checked.<p><a href="https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19110" rel="nofollow">https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19110</a><p><a href="https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19111" rel="nofollow">https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19111</a><p><a href="https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19112" rel="nofollow">https:&#x2F;&#x2F;fontsplugin.com&#x2F;google-fonts-checker&#x2F;?test_id=19112</a>
评论 #33832504 未加载
ahelwerover 2 years ago
If you&#x27;re hosting your website with a static site generator on github&#x2F;gitlab&#x2F;sourcehut etc., check the documentation for whatever theme you&#x27;re using. I&#x27;m using the Beautiful Hugo theme and switching to self-hosted fonts (and javascript) was as easy as adding<p><pre><code> [Params] selfHosted = true </code></pre> in the top-level config.toml.
angrygoatover 2 years ago
Thanks for this tool.<p>One piece of feedback – it&#x27;s not great that the `test_id` is a small sequentially generated integer; it&#x27;s trivial to iterate across all of the URLs that have been tested.
评论 #33831152 未加载
leeoniyaover 2 years ago
as a big fan of self-hosting all the things, without CDNs (except vids or hi res galleries), i&#x27;ve been a regular user of google-webfonts-helper:<p><a href="https:&#x2F;&#x2F;gwfh.mranftl.com&#x2F;fonts" rel="nofollow">https:&#x2F;&#x2F;gwfh.mranftl.com&#x2F;fonts</a>
Tepixover 2 years ago
This is nice.<p>Hosting fonts locally is something i&#x27;ve advocated since the beginnings of Google Fonts.<p>Apart from the stated benefits it also means fewer DNS lookups i.e. yet another point of failure gone and yet another privacy bonus. It&#x27;s not just google that can spy on you, also your ISP.<p>PS: It&#x27;s not just Google Fonts, this applies to all fonts stored on CDNs.
评论 #33832988 未加载
bcopaover 2 years ago
WhatFont plug in is also a great tool for this!
评论 #33830879 未加载
brataaaaanover 2 years ago
Great tool.<p>This is especially important to be GDPR-compliant in Europe.
评论 #33830655 未加载