macOS
brew install woff2local Homebrew formula metadata
sudo port install woff2MacPorts ports tree · print/woff2/Portfile · 来源: api.github.com
安装
brew install woff2local Homebrew formula metadata
sudo port install woff2MacPorts ports tree · print/woff2/Portfile · 来源: api.github.com
sudo apk add woff2Alpine Linux edge package indexes · woff2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install woff2Fedora Rawhide package metadata · woff2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#woff2nixpkgs package indexes · pkgs/by-name/wo/woff2/package.nix · 来源: api.github.com
sudo pacman -S woff2Arch Linux sync databases · woff2 · 来源: geo.mirror.pkgbuild.com
sudo zypper install woff2openSUSE Tumbleweed package metadata · woff2 · 来源: download.opensuse.org
概览
Utilities to create and convert Web Open Font File (WOFF) files
历史
WOFF2 is both a W3C web-font packaging standard and, in package-manager form, Google's reference C++ encoder/decoder utilities for the format. The format improves on WOFF 1.0 by combining font-aware preprocessing with Brotli compression so web fonts can be transferred more compactly while remaining suitable for CSS @font-face deployment.
The W3C publication history records WOFF2's First Public Working Draft on 8 May 2014, Working Draft in 2015, Candidate Recommendation Snapshot in 2016, Proposed Recommendation in January 2018, and Recommendation on 1 March 2018, with later Recommendation updates in 2021, 2022, and 2024. The current W3C Recommendation says WOFF2 was developed from experience with widely deployed WOFF 1.0 and was designed to reduce network bandwidth while keeping decompression fast enough for mobile devices.
Google's woff2 repository was created in October 2014 and provides the font compression reference code. Its README separates the Brotli reference code from the C++ font compression and decompression code, and the repository's releases show 1.0.0 and 1.0.1 in October 2017 followed by 1.0.2 in November 2017, just before the format reached W3C Recommendation status.
WOFF2 moved from an optimization experiment into the default web-font format because it could be deployed alongside WOFF 1.0 in normal CSS. The W3C Evaluation Report explained that @font-face can list WOFF2 first and WOFF as a fallback without user-agent sniffing, and the current Recommendation states that WOFF2 is implemented in all major browsers and widely used on production websites.
The format's adoption was tied to measurable compression gains. The W3C Evaluation Report found Brotli-based WOFF2 had median gains of about 23.94% over WOFF1 on the Google Fonts TrueType corpus and 26.79% on an Adobe TrueType corpus, while keeping memory and decompression cost within the constraints needed for web deployment.
Package users normally run woff2_compress to convert TTF or OTF fonts into .woff2 files, woff2_decompress to round-trip them back to OpenType/SFNT data, and woff2_info to inspect the package. Web developers then reference .woff2 files from CSS @font-face rules, often with older formats as fallbacks only when legacy browser support is required.
The package is important because it gives distributions a small, standalone implementation of a core web platform format. It is used by font build pipelines, web asset optimizers, browser tests, and packaging workflows that need reproducible conversion between OpenType fonts and the compressed format browsers actually fetch.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
woff2_compress | cli | 全局可执行文件 | |
woff2_decompress | cli | 全局可执行文件 | |
woff2_info | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/google/woff2
安装元数据
| 软件包键 | brew:woff2 |
|---|---|
| 版本 | 1.0.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/woff2 |
| 主页 | https://github.com/google/woff2 |
| 仓库 | https://github.com/google/woff2 |
| 上游文档 | https://github.com/google/woff2#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/google/woff2/archive/refs/tags/v1.0.2.tar.gz |
| 依赖 | brotli |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | woff2 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libwoff-dev 1.0.2-2+b2
library for converting fonts to WOFF 2.0 - development files
https://github.com/google/woff2
sudo apt install libwoff-devlibwoff1 1.0.2-2+b2
library for converting fonts to WOFF 2.0
https://github.com/google/woff2
sudo apt install libwoff1woff2 1.0.2-2+b2
utilities for converting fonts to WOFF 2.0
https://github.com/google/woff2
sudo apt install woff2woff2
nix profile install nixpkgs#woff2libwoff-dev 1.0.2-2build1
library for converting fonts to WOFF 2.0 - development files
https://github.com/google/woff2
sudo apt install libwoff-devlibwoff1 1.0.2-2build1
library for converting fonts to WOFF 2.0
https://github.com/google/woff2
sudo apt install libwoff1woff2 1.0.2-2build1
utilities for converting fonts to WOFF 2.0
https://github.com/google/woff2
sudo apt install woff2libwoff2common 1.0.2-r4
Web Open Font Format 2 reference implementation (common library)
https://github.com/google/woff2
sudo apk add libwoff2commonlibwoff2dec 1.0.2-r4
Web Open Font Format 2 reference implementation (encoder library)
https://github.com/google/woff2
sudo apk add libwoff2declibwoff2enc 1.0.2-r4
Web Open Font Format 2 reference implementation (decoder library)
https://github.com/google/woff2
sudo apk add libwoff2encwoff2 1.0.2-r4
Web Open Font Format 2 reference implementation
https://github.com/google/woff2
sudo apk add woff2woff2-dev 1.0.2-r4
Web Open Font Format 2 reference implementation (development files)
https://github.com/google/woff2
sudo apk add woff2-devwoff2 1.0.2-25.fc44
Web Open Font Format 2.0 library
https://github.com/google/woff2
sudo dnf install woff2woff2-devel 1.0.2-25.fc44
Development files for woff2
https://github.com/google/woff2
sudo dnf install woff2-develwoff2-tools 1.0.2-25.fc44
Web Open Font Format 2.0 tools
https://github.com/google/woff2
sudo dnf install woff2-toolswoff2 1.0.2-6
Web Open Font Format 2 reference implementation
https://github.com/google/woff2
sudo pacman -S woff2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.