From 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 12 Jul 2026 11:08:50 +0200 Subject: update --- articles/2025/Reducing-web-font-size.html | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 articles/2025/Reducing-web-font-size.html (limited to 'articles/2025/Reducing-web-font-size.html') diff --git a/articles/2025/Reducing-web-font-size.html b/articles/2025/Reducing-web-font-size.html new file mode 100755 index 0000000..e03b92f --- /dev/null +++ b/articles/2025/Reducing-web-font-size.html @@ -0,0 +1,39 @@ + + + + + + + Reducing web font size + + +
+

Bloggings

+ Back + +
+ +
+
+

Reducing web font size

+

2025-04-06

+

I stumbled on a marvellous post

+

I started using the Jetbrains font for this blog, but adding the font in the css file makes it +pretty heavy, and I've been considering removing it. BUT...

+

I stumbled on this post +and tried Neil's suggestion on the JetbrainsMono-Regular truetype font, and the font filesize was reduced from 274k to 66Kb

+pipx install fonttools +pyftsubset JetbrainsMono-Regular.ttf --output-file=JetbrainsMono-Regular-reduced.ttf --unicodes=U+0020-007E +

So I decided to try it on the JetBrainsMono Regular Nerdfont, a whopping 2.4Mb, but the result was even better, 18Kb!

+.rw-r--r-- 66k philip 6 avril 23:04 JetBrainsMono-reduced.ttf +.rw-r--r-- 18k philip 6 avril 23:20 JetBrainsMonoNerd-reduced.ttf + +

Understanding why will take a bit of forensics, in the mean time this blog has become much lighter.

+

Update

+

I wound up just using the default monospace for the main text, and Ultra (reduced) for the title .

+ +
+
+ + -- cgit v1.3.1