# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 woff2

查看 woff2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:woff2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install woff2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install woff2
```

  证据: MacPorts ports tree: print/woff2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add woff2
```

  证据: Alpine Linux edge package indexes: woff2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install woff2
```

  证据: Debian stable package indexes: woff2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install woff2
```

  证据: Fedora Rawhide package metadata: woff2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#woff2
```

  证据: nixpkgs package indexes: pkgs/by-name/wo/woff2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S woff2
```

  证据: Arch Linux sync databases: woff2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install woff2
```

  证据: openSUSE Tumbleweed package metadata: woff2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:woff2
- **软件包管理器:** Homebrew
- **版本:** 1.0.2
- **来源摘要:** Utilities to create and convert Web Open Font File (WOFF) files
- **主页:** <https://github.com/google/woff2>
- **仓库:** <https://github.com/google/woff2>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- woff2_compress (别名)
- woff2_decompress (别名)
- woff2_info (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.2
## 项目历史与用法

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.

### 时间线

- 2014: WOFF2 First Public Working Draft published by W3C and Google's woff2 repository created.
- 2016: WOFF 2.0 Evaluation Report published as a W3C Working Group Note, comparing compression candidates and deployment constraints.
- 2017: Google woff2 1.0.x releases published.
- 2018: WOFF2 became a W3C Recommendation.
- 2024: W3C published an updated WOFF2 Recommendation and implementation report material.

### Related projects

- WOFF 1.0 is WOFF2's predecessor and remains the fallback format in many historical CSS examples.
- Brotli is the entropy-coding layer used by WOFF2; the W3C Recommendation records Google's royalty-free licensing commitment for Brotli use in the specification.
- FontTools implements WOFF2 support in Python and is listed in the W3C implementation report alongside Google's C++ woff2 implementation.

### 来源

- <https://api.github.com/repos/google/woff2>
- <https://api.github.com/repos/google/woff2/releases?per_page=100>
- <https://github.com/google/woff2>
- <https://w3c.github.io/woff/woff2/ImpRpt/>
- <https://www.w3.org/Fonts/WG/WOFF2ER/>
- <https://www.w3.org/TR/WOFF2/>
- <https://www.w3.org/standards/history/WOFF2/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - libwoff-dev - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: libwoff-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for converting fonts to WOFF 2.0 - development files | https://github.com/google/woff2
- Debian apt - libwoff1 - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: libwoff1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Debian apt - woff2 - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: woff2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Nix - woff2: normalized package name match | nixpkgs package indexes: pkgs/by-name/wo/woff2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libwoff-dev - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwoff-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for converting fonts to WOFF 2.0 - development files | https://github.com/google/woff2
- Ubuntu apt - libwoff1 - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwoff1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Ubuntu apt - woff2 - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: woff2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- apk - libwoff2common - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2common from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (common library) | https://github.com/google/woff2
- apk - libwoff2dec - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2dec from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (encoder library) | https://github.com/google/woff2
- apk - libwoff2enc - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2enc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (decoder library) | https://github.com/google/woff2
- apk - woff2 - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: woff2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation | https://github.com/google/woff2
- apk - woff2-dev - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: woff2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (development files) | https://github.com/google/woff2
- dnf - woff2 - 1.0.2-26.fc45: normalized package name match | Fedora Rawhide package metadata: woff2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Web Open Font Format 2.0 library | https://github.com/google/woff2
- dnf - woff2-devel - 1.0.2-26.fc45: normalized package name match | Fedora Rawhide package metadata: woff2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for woff2 | https://github.com/google/woff2
- dnf - woff2-tools - 1.0.2-26.fc45: normalized package name match | Fedora Rawhide package metadata: woff2-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Web Open Font Format 2.0 tools | https://github.com/google/woff2
- pacman - woff2 - 1.0.2-6: normalized package name match | Arch Linux sync databases: woff2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Web Open Font Format 2 reference implementation | https://github.com/google/woff2


## Combined YAML source

View the package source record on GitHub. [combined/woff2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/woff2.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
