惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
博客园 - 司徒正美
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
D
Docker
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
I
InfoQ
雷峰网
雷峰网
The Cloudflare Blog
美团技术团队
Engineering at Meta
Engineering at Meta

HN's home page

Rainbow Query Language | Hacker News Exec into Node via Kubectl An AI native hedge fund The Seven-Action Documentation Model | Hacker News Package Manager for Kubectl Plugins Tongan Castaways | Hacker News Tech overlords plan for conscious AI to conquer the cosmos. What could go wrong? Data Breach Disclosure Lag Is Getting Worse How LLMs Work | Hacker News I Dropped PRDs for Shape Up Go Experiments Explained | Hacker News FCA's Palantir deal could expose UK financial data to Trump's US, critics fear WebXR BCI for Neural-Adaptive Avatar Control in Mixed Reality The first murder conviction via DNA analysis Tom Interviews Theo de Raadt of the OpenBSD Project (2019) [video] Show HN: Replace shell commands with bun shell typescript scripts Quay.io Is Down | Hacker News AI driven analysis of brokerage account fees in the UK Bill Gates Spent Years Crafting His Image. Now It's Cracking Using LLMs to secure source code Wi-Fi 8 in the Lab [video] The household battery revolution that could change energy bills and the world Is Python Becoming Pinyin? | Hacker News Livia – Executive Assistant | Hacker News FindMyPipe – Query Apple Find My from Linux for AI Agents Show HN: Agent skill for creating product launch videos with Remotion RecruitMyself – AI job search copilot for resumes and applications AI coding agents and the erosion of system understanding The 'Resting' Generation and South Korea's Youth Recession AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029
Making the Smallest Possible Webfont
TheRealPomax · 2026-06-18 · via HN's home page

This is a 2026 update of a 2011 article about writing a tiny zero-width font for doing webfont load detection for drawing text on a canvas element, as the browser landscape, as well as font support, has changed radically in the last fifteen years. IE no longer exists, Opera is just another Chrome, Safari fixed most of the bugs that broke this approach some fifteen years ago, and pretty much everything's using OTS for font sanitization and Harfbuzz for shaping.

In the article we'll run through the byte layout of an OpenType 1.9 font, using TTF vector tables for our glyph outlines (which will contain exactly zero outlines!) and figure out which values we can just rip out, and which ones we can at least null out to make a font that's as small and as compressible as possible, leading to a 520 byte (100% spec compliant!) font file with a Base 64 string that we can pack in 298 bytes of JS for embedding directly on a web page.

"Why would we still need this in 2026??" To be clear: you probably don't. But that's not the fun part. The fun part is to see how far off the beaten path we can get in terms of creating a spec-compliant font that goes about as hard as possible in the opposite direction of what the spec designers had in mind.