Goodme Frontend Team
Goodme Frontend Team
Apr 7, 2025 · Frontend Development

How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks

This article explains why Chinese web fonts can be huge, compares TTF and WOFF2 sizes, and provides practical steps—including font subsetting with Python fontTools and on‑the‑fly loading via the FontFace API—to reduce font files from megabytes to a few kilobytes and dramatically speed up page rendering.

Font SubsettingPythonWOFF2
0 likes · 9 min read
How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks
Python Crawling & Data Mining
Python Crawling & Data Mining
Dec 17, 2021 · Artificial Intelligence

Decoding Randomized Custom Fonts with Python: Glyph Matching and OCR Techniques

This article explains how to handle custom web fonts whose glyph order or shapes are randomized by extracting glyph metadata with FontTools, creating binary signatures for reliable matching, and applying image‑recognition OCR to decode characters when glyph contours also change, complete with code examples and step‑by‑step instructions.

OCRcustom fontsfontTools
0 likes · 32 min read
Decoding Randomized Custom Fonts with Python: Glyph Matching and OCR Techniques
21CTO
21CTO
Sep 28, 2019 · Backend Development

Cracking Dazhong Dianping’s CSS Encryption: A Step‑by‑Step Web Scraping Guide

This article walks through the challenges of scraping Dazhong Dianping, explains how the site hides numeric data with custom CSS fonts, and provides a complete Python workflow—including HTTP requests, font extraction, glyph rendering, and OCR—to decode and retrieve the protected information.

CSS encryptionOCRPython
0 likes · 13 min read
Cracking Dazhong Dianping’s CSS Encryption: A Step‑by‑Step Web Scraping Guide