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

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

## 安装

```sh
sudo av install brew:graphite2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install graphite2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install graphite2
```

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

### Linux

- apk (92%):

```sh
sudo apk add graphite2
```

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

- dnf (92%):

```sh
sudo dnf install graphite2
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#graphite2
```

  证据: nixpkgs package indexes: graphite2 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install graphite2
```

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

- Debian apt (92%):

```sh
sudo apt install libgraphite2-3
```

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

## 软件包事实

- **软件包键:** brew:graphite2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/graphite2>
- **版本:** 1.3.15
- **来源摘要:** Smart font renderer for non-Roman scripts
- **主页:** <https://graphite.sil.org/>
- **仓库:** <https://github.com/silnrsi/graphite>
- **上游文档:** <https://graphite.sil.org/>
- **许可证:** MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
- **源码归档:** <https://github.com/silnrsi/graphite/releases/download/1.3.15/graphite2-1.3.15.tgz>
- **最后更新:** 2026-06-30T12:12:03-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gr2fonttest (cli)
- gr2fonttest (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.15
- 管理器更新时间: 2026-06-30
- 本地数据: OK
- 上游仓库: https://github.com/silnrsi/graphite
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Graphite2 is the second-generation rendering engine for SIL International's Graphite smart-font system. Graphite lets TrueType fonts carry extra rule tables so applications can render complex writing systems, especially those used by minority-language communities.

As a package, Graphite2 is small but consequential: many users never invoke `gr2fonttest` directly, yet the library sits underneath typography stacks in applications such as LibreOffice and Firefox that need support for Graphite-enabled fonts.

### 项目历史

SIL developed Graphite because its field work encountered orthographies and complex script behavior that mainstream text-rendering systems did not always handle. The official documentation says the original need came from supporting lesser-known languages on Windows, then expanding to Linux and Mac.

The original engine, SilGraphite, began implementation in 2000. Graphite2 began implementation in 2010 as a rework of that engine, with a faster, more robust design and an API better matched to text-layout engines that prefer to receive glyph and positioning information rather than have the font engine draw directly.

The Graphite system is more than a library: it includes Graphite Description Language, a compiler that adds Graphite tables to TrueType fonts, and a rendering engine. Graphite2 is the engine package most distributions expose for application integration.

### 采用历史

Graphite's adoption path ran through applications that needed high-quality complex-script rendering. SIL's application list identifies OpenOffice, LibreOffice, Firefox, XeTeX, FieldWorks, Paratext, Bloom, Pale Moon, and Godot as Graphite-supporting applications, with several of the newer integrations using Graphite2.

LibreOffice 3.4 and later and Firefox 11 and later are the key adoption milestones for Graphite2 because they moved Graphite support into widely packaged desktop software. Firefox documentation also notes Graphite support across Mac OS X, Linux, Windows, and Android, with CSS feature control for Graphite-enabled fonts.

Because text shaping is infrastructure, Graphite2 adoption is mostly invisible to end users. Its package-manager footprint matters most to maintainers building office suites, browsers, font tools, and TeX-adjacent stacks with correct optional support for complex scripts.

### 使用方式

Direct CLI usage is mostly diagnostic through tools such as `gr2fonttest`. The main use is as a C/C++ rendering library linked into applications that already have a text-layout pipeline.

A Graphite-enabled workflow starts with a TrueType font and a GDL program, compiles extra Graphite tables into the font, then lets the Graphite2 engine return glyph and positioning information to the host application.

There is no ordinary user configuration or credential file for Graphite2 as packaged by Homebrew; behavior is driven by application integration and the Graphite tables embedded in fonts.

### 为什么软件包爱好者会关心

Graphite2 is one of those deceptively small libraries that keeps a large stack honest. Removing or misbuilding it can silently degrade minority-script support in software that otherwise appears unrelated to font engineering.

It is also a neat packaging example of a second-generation engine replacing an older implementation: SilGraphite remains historically important, but Graphite2 is the speed-and-robustness path adopted by major applications.

For dependency graph readers, Graphite2 often appears near HarfBuzz, FreeType, ICU, LibreOffice, and browser builds: not glamorous, but central to internationalized text rendering.

### 时间线

- 2000: Initial SilGraphite engine implementation began.
- 2010: Graphite2 implementation began as a rework of the original engine.
- 2011: LibreOffice 3.4 and later used the Graphite2 engine.
- 2012: Firefox 11 and later supported Graphite using Graphite2.
- 2020: Graphite2 1.3.14 shipped with bug fixes and no API change.
- 2026: Graphite2 1.3.15 release notes show ongoing build and maintenance fixes.

### Related projects

- SilGraphite is the original Graphite engine and is described by SIL as deprecated.
- LibreOffice and Firefox are major Graphite2 consumers named by SIL documentation.
- OpenType and Apple Advanced Typography are adjacent smart-font technologies discussed in Graphite's documentation.
- HarfBuzz and FreeType are common neighbors in modern text-rendering dependency stacks.

### 来源

- <https://github.com/silnrsi/graphite>
- <https://github.com/silnrsi/graphite/releases>
- <https://graphite.sil.org/>
- <https://graphite.sil.org/graphite_aboutWhy>
- <https://graphite.sil.org/graphite_apps>
- <https://graphite.sil.org/graphite_devApp>
- <https://graphite.sil.org/graphite_firefox>
- <https://graphite.sil.org/graphite_techAbout>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** graphite2
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - libgraphite2-3 - 1.3.14-2+deb13u1: normalized package name match | Debian stable package indexes: libgraphite2-3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Font rendering engine for Complex Scripts -- library | https://graphite.sil.org/
- Debian apt - libgraphite2-dev - 1.3.14-2+deb13u1: normalized package name match | Debian stable package indexes: libgraphite2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libgraphite2 | https://graphite.sil.org/
- Debian apt - libgraphite2-doc - 1.3.14-2+deb13u1: normalized package name match | Debian stable package indexes: libgraphite2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for libgraphite2 | https://graphite.sil.org/
- Debian apt - libgraphite2-utils - 1.3.14-2+deb13u1: normalized package name match | Debian stable package indexes: libgraphite2-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Font rendering engine for Complex Scripts -- utilities | https://graphite.sil.org/
- Debian apt - python3-graphite2 - 1.3.14-2+deb13u1: normalized package name match | Debian stable package indexes: python3-graphite2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python bindings for libgraphite2 | https://graphite.sil.org/
- Nix - graphite2: normalized package name match | nixpkgs package indexes: graphite2 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libgraphite2-3 - 1.3.14-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphite2-3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Font rendering engine for Complex Scripts -- library | https://graphite.sil.org/
- Ubuntu apt - libgraphite2-dev - 1.3.14-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphite2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libgraphite2 | https://graphite.sil.org/
- Ubuntu apt - libgraphite2-doc - 1.3.14-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphite2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Documentation for libgraphite2 | https://graphite.sil.org/
- Ubuntu apt - libgraphite2-utils - 1.3.14-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphite2-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Font rendering engine for Complex Scripts -- utilities | https://graphite.sil.org/
- Ubuntu apt - python3-graphite2 - 1.3.14-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-graphite2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python bindings for libgraphite2 | https://graphite.sil.org/
- apk - graphite2 - 1.3.15-r0: normalized package name match | Alpine Linux edge package indexes: graphite2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | reimplementation of the SIL Graphite text processing engine | https://graphite.sil.org/
- apk - graphite2-dev - 1.3.15-r0: normalized package name match | Alpine Linux edge package indexes: graphite2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | reimplementation of the SIL Graphite text processing engine (development files) | https://graphite.sil.org/
- apk - graphite2-static - 1.3.15-r0: normalized package name match | Alpine Linux edge package indexes: graphite2-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | reimplementation of the SIL Graphite text processing engine (static library) | https://graphite.sil.org/
- dnf - graphite2 - 1.3.14-22.fc45: normalized package name match | Fedora Rawhide package metadata: graphite2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Font rendering capabilities for complex non-Roman writing systems | https://sourceforge.net/projects/silgraphite/
- dnf - graphite2-devel - 1.3.14-22.fc45: normalized package name match | Fedora Rawhide package metadata: graphite2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Files for developing with graphite2 | https://sourceforge.net/projects/silgraphite/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Popular package that depends on this formula.
- [tectonic](https://pkg.so/zh-hans/brew/tectonic/) - Popular package that depends on this formula.
- [texlive](https://pkg.so/zh-hans/brew/texlive/) - Popular package that depends on this formula.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Shares pkgdb curated category or tags: cli, font-rendering, media, typography.
- [fribidi](https://pkg.so/zh-hans/brew/fribidi/) - Shares pkgdb curated category or tags: cli, media, text-layout, unicode.
- [openexr](https://pkg.so/zh-hans/brew/openexr/) - Shares pkgdb curated category or tags: cli, library, media.
- [imagemagick](https://pkg.so/zh-hans/brew/imagemagick/) - Shares pkgdb curated category or tags: cli, library, media.
- [libvmaf](https://pkg.so/zh-hans/brew/libvmaf/) - Shares pkgdb curated category or tags: cli, library, media.
- [poppler](https://pkg.so/zh-hans/brew/poppler/) - Shares pkgdb curated category or tags: cli, library, media.
- [libheif](https://pkg.so/zh-hans/brew/libheif/) - Shares pkgdb curated category or tags: cli, library, media.
- [libavif](https://pkg.so/zh-hans/brew/libavif/) - Shares pkgdb curated category or tags: cli, library, media.
- [chafa](https://pkg.so/zh-hans/brew/chafa/) - Local package facts share a topical domain. Shared terms: cli, media, renderer, rendering, unicode.
- [durdraw](https://pkg.so/zh-hans/brew/durdraw/) - Local package facts share a topical domain. Shared terms: cli, media, text, unicode.

## Combined YAML source

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


## 来源

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