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

推荐订阅源

B
Blog RSS Feed
博客园_首页
N
News | PayPal Newsroom
有赞技术团队
有赞技术团队
The Hacker News
The Hacker News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
S
SegmentFault 最新的问题
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
P
Privacy & Cybersecurity Law Blog
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Schneier on Security
Schneier on Security
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
量子位
Forbes - Security
Forbes - Security
爱范儿
爱范儿
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tor Project blog
Recorded Future
Recorded Future
A
About on SuperTechFans
J
Java Code Geeks
The Register - Security
The Register - Security
PCI Perspectives
PCI Perspectives
H
Hacker News: Front Page
V2EX - 技术
V2EX - 技术
S
Secure Thoughts
V
Vulnerabilities – Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Scott Helme
Scott Helme
T
The Exploit Database - CXSecurity.com
Y
Y Combinator Blog
AWS News Blog
AWS News Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
IT之家
IT之家
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
C
CERT Recently Published Vulnerability Notes
L
LangChain Blog
F
Full Disclosure
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The GitHub Blog
The GitHub Blog

Comments for Michael Tsai

Michael Tsai - Blog - Dissecting Apple’s Sparse Image Format (ASIF) Michael Tsai - Blog - What to Do With a Hot Mac Michael Tsai - Blog - macOS California Adventure Michael Tsai - Blog - Shutting Down Notion Mail Michael Tsai - Blog - Export Control for Fable and Mythos Michael Tsai - Blog - Mac App Store Search Not Showing Mac Apps Michael Tsai - Blog - Boom Mobile Restructuring Michael Tsai - Blog - “If You Can’t Stand By a Feature, You Shouldn’t Launch It.” Michael Tsai - Blog - Apple Hardware Price Hikes Michael Tsai - Blog - Tony Krueger, RIP Michael Tsai - Blog - WebKit Always Enables the Copy Menu Item in Every App Michael Tsai - Blog - Xcode 27’s Device Hub Michael Tsai - Blog - Swift 6.4 Michael Tsai - Blog - RCS in iOS 27 Michael Tsai - Blog - SwiftData in appleOS 27 Michael Tsai - Blog - Bar None 1.0 Michael Tsai - Blog - CrashReportExtension Michael Tsai - Blog - SwiftUI in appleOS 27 Michael Tsai - Blog - Apple Clearing App Store Clutter Michael Tsai - Blog - Mandatory Apple Intelligence Michael Tsai - Blog - macOS Touch Michael Tsai - Blog - UIKit in iOS 27 Michael Tsai - Blog - Runaway Spotlight With Pages Document on iCloud Drive Michael Tsai - Blog - macOS 27 to Drop Support for AirPort and Time Capsule Backups Michael Tsai - Blog - WWDC 2026 Links Michael Tsai - Blog - SpaceX Acquires xAI, Goes Public, Acquires Cursor Michael Tsai - Blog - Apple Intelligence in appleOS 27 Michael Tsai - Blog - Apple Foundation Models in appleOS 27 Michael Tsai - Blog - Agentic Password Updates Michael Tsai - Blog - Photos AI in appleOS 27 Michael Tsai - Blog - AI-Generated Shortcuts Michael Tsai - Blog - Apple’s Dormant CUPS Michael Tsai - Blog - The End of Pinboard? Michael Tsai - Blog - Anticipating the Coming USB-C iPhone Backlash Michael Tsai - Blog - App Store Personalized Recommendations and Keylogging Michael Tsai - Blog - Safari 27 Announced Michael Tsai - Blog - Apple Creator Studio Now Shipping Michael Tsai - Blog - Rewriting Notion in SwiftUI Michael Tsai - Blog - FastSpring Store Unexpectedly Offline Michael Tsai - Blog - Locked Out of Apple Account Due to Gift Card Michael Tsai - Blog - No Siri AI in EU Michael Tsai - Blog - Siri AI Announced Michael Tsai - Blog - Child Safety Features in appleOS 27 Michael Tsai - Blog - Golden Gate Window Corners Michael Tsai - Blog - Golden Gate Sidebars and Toolbars Michael Tsai - Blog - Golden Gate Menu Icons Michael Tsai - Blog - Liquid Glass 27 Icons Michael Tsai - Blog - Liquid Glass 27 Slider Michael Tsai - Blog - Glow Leopard Michael Tsai - Blog - Xcode 27 Announced Michael Tsai - Blog - macOS 27 Golden Gate Announced Michael Tsai - Blog - iPadOS 27 Announced Michael Tsai - Blog - watchOS 27 Announced Michael Tsai - Blog - WWDC 2026 Keynote Michael Tsai - Blog - Sirius Pomodoro Michael Tsai - Blog - WWDC 2026 Preview Michael Tsai - Blog - Xogot for Mac Beta Michael Tsai - Blog - Where Did SwiftUI Leave You Hanging? Michael Tsai - Blog - Fixing mediaanalysisd Storage and CPU Use Michael Tsai - Blog - Adobe Modifies Your Hosts File for Their Analytics Michael Tsai - Blog - WWDC 2026 Wish Lists Michael Tsai - Blog - macOS Needs Its Spaces Grid Back Michael Tsai - Blog - WhisperPad Rejected From the Mac App Store Michael Tsai - Blog - Restoring Contacts From a Time Machine Backup Michael Tsai - Blog - Bricking Microsoft Office 2019 Michael Tsai - Blog - No Bounty for Mysk Michael Tsai - Blog - fsck_hfs Cache Exhaustion Bug Michael Tsai - Blog - macOS 26.5.1 Michael Tsai - Blog - iOS 26.5.1 Michael Tsai - Blog - BBEdit 16 Michael Tsai - Blog - Nisus Probably Moribund Michael Tsai - Blog - Pair Networks Price Increase Michael Tsai - Blog - Taphouse 1.5 Michael Tsai - Blog - More App Store Ad Spots Michael Tsai - Blog - StopTheMadness Pro 26 Michael Tsai - Blog - Mac External Display Support Reference Michael Tsai - Blog - Bartender Pro Michael Tsai - Blog - ARC Overhead in Swift Sorting Michael Tsai - Blog - Iris 1.0 Michael Tsai - Blog - Halide Mark III Michael Tsai - Blog - !Camera Michael Tsai - Blog - Project Indigo Michael Tsai - Blog - Unpro Camera Michael Tsai - Blog - MailMate License Model: One Year Later Michael Tsai - Blog - Iris Rejected From the App Store Michael Tsai - Blog - OpenAI Model’s Proof of Erdős Unit Distance Problem Michael Tsai - Blog - Apps for YouTube℠™®•! Michael Tsai - Blog - Google’s Intelligent Search Box Michael Tsai - Blog - Catalina Data Protections Break File Sharing Michael Tsai - Blog - Apple Asks Supreme Court to Review Epic Ruling Michael Tsai - Blog - Stats Visualization in Apple Sports Michael Tsai - Blog - Steve Jobs in Exile Michael Tsai - Blog - Leaving CloudKit Michael Tsai - Blog - Lawsuits Claim OpenAI and Perplexity Shared User Data for Advertising Michael Tsai - Blog - Inkwell Rejected From the App Store Michael Tsai - Blog - Updating Shared Shortcuts Michael Tsai - Blog - Claude Desktop App Michael Tsai - Blog - OmniFocus 4.8.10 Michael Tsai - Blog - Chrome’s Huge weights.bin File Michael Tsai - Blog - Gemini App for Mac
Michael Tsai - Blog - Rewriting Apple’s TrueType Hinting Interpreter in Swift
Michael J. Tsai · 2026-06-13 · via Comments for Michael Tsai

Scott Perry:

My team rewrote Apple's TrueType hinting interpreter in Swift, ask me anything.

[…]

I feel like naming just one would be a disservices to all of the features that made this effort possible (C interop, generics, noncopyable/nonescapable types) but at the end of the day I think the star of the show was the optimizer; despite being faster than the code it replaced, the new code is super readable and that was only possible because the optimizer was able to completely eliminate all of our abstractions.

The new version is faster, but the main motivation was security concerns.

Dmitrii Kalianov:

Is hinting useful/being used in the days of hi-dpi displays? I was under impression that Apple switched to grayscale anti-aliasing and ditched hinting.

Scott Perry:

For the most part hinting isn’t really necessary anymore, but thanks to being Turing-complete it has been Hyrum’s law-ed by at least one CJK font that uses hinting to lay out strokes in its characters.

Alex Rosenberg:

There were three major TrueType implementations at Apple IIRC:

  • The original 68K one
  • A rewrite for Copland that lived with ATS/ATSUI after Copland was cancelled
  • iPhone shipped one derived from heavily-modified FreeType that was current until today

Scott Perry:

One of the axioms for this project was that I wanted my team to write the most boring code possible—nearly identical structurally to the code it was replacing, because to do otherwise would introduce binary compatibility risk. The other axiom was 100% test coverage for all new code as it landed, with the same units testing both interpreters.

Rosyna Keller:

Is the font parsing code itself still C++?

Scott Perry:

There is also a “Safe Font Parser” for WebKit in Lockdown Mode, but it supports a subset of all the myriad features provided by font formats.

Previously:

2 Comments