TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

27 点作者 ladyanita2210 个月前

2 条评论

ladyanita2210 个月前
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 个月前
<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