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.

Oxidize – Notes on moving Harfbuzz and Freetype tools and libraries to Rust

27 pointsby ladyanita2210 months ago

2 comments

ladyanita2210 months ago
Google is rewriting HarfBuzz and FreeType in Rust<p>The author of HarfBuzz has published [State of Text Rendering 2024](<a href="https:&#x2F;&#x2F;behdad.org&#x2F;text2024&#x2F;" rel="nofollow">https:&#x2F;&#x2F;behdad.org&#x2F;text2024&#x2F;</a>), where he [describes](<a href="https:&#x2F;&#x2F;docs.google.com&#x2F;document&#x2F;d&#x2F;1UnR2zKf3Z_DDRS6vLgBkSHUeqI3IGOEhWYh7rAIvsb8&#x2F;preview#heading=h.iu7l3cbxef8b" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;document&#x2F;d&#x2F;1UnR2zKf3Z_DDRS6vLgBkSHUe...</a>) the ongoing rewrite of the entire open-source text rendering stack in Rust which is funded by Google Fonts.<p>The motivations for it are laid out at <a href="https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;oxidize">https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;oxidize</a>, and the actual code is at <a href="https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;fontations">https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;fontations</a>. The individual crates are already published to crates.io, too!<p>The intent does seem to be to completely replace the C&#x2F;C++ code in HarfBuzz and FreeType in Android and Chrome, which would be a massive win for security. Numerous other HarfBuzz&#x2F;FreeType users such as Firefox and all the Linux desktop would also benefit.<p>Curiously, Microsoft is rewriting their proprietary font parsing code in Rust as well: <a href="https:&#x2F;&#x2F;redd.it&#x2F;12yg3cp" rel="nofollow">https:&#x2F;&#x2F;redd.it&#x2F;12yg3cp</a>
评论 #40961025 未加载
gedw9910 months ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;go-text&#x2F;typesetting">https:&#x2F;&#x2F;github.com&#x2F;go-text&#x2F;typesetting</a><p>Same but in golang<p>Used by gio, Fyne and ebiten golang gui projects