Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, scoop, zypper 安装 harfbuzz

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install harfbuzz

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install harfbuzz

MacPorts ports tree · graphics/harfbuzz/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add harfbuzz

Alpine Linux edge package indexes · harfbuzz · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install harfbuzz

Fedora Rawhide package metadata · harfbuzz · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#harfbuzz

nixpkgs package indexes · pkgs/by-name/ha/harfbuzz/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S harfbuzz

Arch Linux sync databases · harfbuzz · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install gir1.2-harfbuzz-0.0

Debian stable package indexes · gir1.2-harfbuzz-0.0 · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install harfbuzz-devel

openSUSE Tumbleweed package metadata · harfbuzz-devel · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/harfbuzz

Scoop official bucket manifest trees · bucket/harfbuzz.json · 来源: api.github.com

概览

软件包摘要

OpenType text shaping engine

命令和别名

  • hb-info
  • hb-raster
  • hb-shape
  • hb-subset
  • hb-vector
  • hb-view

历史

项目历史与用法

HarfBuzz is an open source text shaping engine and font platform. It converts Unicode text plus font data into positioned glyphs, which makes it a quiet but critical dependency for readable Arabic, Indic, Southeast Asian, and many other complex-script layouts.

For package users, HarfBuzz is the kind of library that disappears when it works and becomes instantly visible when it regresses: browsers, GUI toolkits, document editors, terminals, and font tools depend on consistent shaping behavior.

项目历史

The HarfBuzz manual says the project began as text-shaping code inside FreeType and was extracted into its own project. Behdad Esfahbod's text-rendering history explains that FreeType's OpenType Layout code was removed from FreeType's rasterization scope, then carried separately by Pango and Qt developers.

Around 2006, Pango and Qt developers cooperated to reunify the layout engine as a freedesktop.org project named HarfBuzz. The same history notes that HarfBuzz was relicensed to the old MIT license and that the plan became a unified shaping engine rather than only a merged copy of existing code.

The project's own README says HarfBuzz started as a text shaping engine and grew into a broader font platform supporting OpenType and Apple Advanced Typography. Its component map includes core shaping, subsetting, font-function integrations with FreeType/CoreText/Uniscribe/DirectWrite/GDI/GLib/Graphite2, and CLI tools such as `hb-shape`, `hb-view`, and `hb-subset`.

采用历史

HarfBuzz adoption followed the need for shared, correct complex-script shaping across open source desktops, browsers, toolkits, and document stacks. The README states that HarfBuzz shapes the majority of text on modern screens, which reflects its position below many user-facing applications.

Because shaping quality depends on Unicode, OpenType, AAT, Graphite, script-specific rules, and font quirks, HarfBuzz became a shared place for correctness and robustness work that individual applications would struggle to maintain independently.

Its wide package-manager presence in the supplied input facts reflects this dependency role: HarfBuzz is not just a command-line tool package, it is a library package that other packages build against.

使用方式

Most users consume HarfBuzz indirectly through libraries and applications. Direct users call its C API or C++ implementation to feed buffers, fonts, features, scripts, languages, and directions, then receive glyph IDs and positions for rendering.

The package also ships command-line utilities useful to font engineers and package maintainers. Tools such as `hb-shape`, `hb-view`, `hb-info`, and `hb-subset` help reproduce shaping behavior, inspect font support, render examples, and create smaller font subsets.

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

HarfBuzz is package-nerd significant because it sits in the dependency graph of text rendering. A version bump can change glyph placement, script behavior, subset output, sanitizer strictness, ABI exposure, or optional backend integration.

It is also a classic example of a small-looking package with enormous blast radius. Packaging choices around FreeType, Graphite2, GLib, CoreText, DirectWrite, ICU-like Unicode data, build flags, and command-line utilities affect everything from web browsers to PDF producers.

The project's release history shows why maintainers track it closely: HarfBuzz 1.0 implemented the Universal Shaping Engine, 2.0 added AAT shaping support, 3.0 stabilized the subset API and ABI, and 8.0 introduced an experimental WebAssembly shaper.

时间线

  • Pre-2006: OpenType layout code originates in FreeType and is carried by Pango and Qt after extraction from FreeType's rasterizer scope.
  • 2006: Pango and Qt developers cooperate to reunify the layout engine as HarfBuzz under freedesktop.org.
  • 2008: Behdad Esfahbod describes rewrite work aimed at robustness and efficient mmap-based font use.
  • 2015-07-26: HarfBuzz 1.0.0 release notes list Universal Shaping Engine implementation.
  • 2018-10-18: HarfBuzz 2.0.0 release notes list AAT shaping support.
  • 2021-09-17: HarfBuzz 3.0.0 release notes declare the subset API and harfbuzz-subset ABI stable.
  • 2023-07-09: HarfBuzz 8.0.0 release notes introduce an experimental WebAssembly shaper.

Related projects

  • Closely related projects include FreeType, Pango, Qt, Cairo, Skia, Graphite2, CoreText, Uniscribe, DirectWrite, fontconfig, and the OpenType and Unicode specifications.
  • HarfBuzz also relates to browser engines, PDF and office suites, TeX engines, font subsetting pipelines, and font engineering tools that need reproducible shaping.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 5 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hb-infocli全局可执行文件
hb-rastercli全局可执行文件
hb-shapecli全局可执行文件
hb-subsetcli全局可执行文件
hb-vectorcli全局可执行文件
hb-viewcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本14.2.1
管理器更新时间2026-06-02
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/harfbuzz/harfbuzz

安装元数据

软件包元数据

软件包键brew:harfbuzz
版本14.2.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/harfbuzz
主页https://github.com/harfbuzz/harfbuzz
仓库https://github.com/harfbuzz/harfbuzz
上游文档https://harfbuzz.github.io/
许可证MIT
源码归档https://github.com/harfbuzz/harfbuzz/releases/download/14.2.1/harfbuzz-14.2.1.tar.xz
最后更新2026-06-02T20:38:26Z
Pulseupdated
依赖cairo, freetype, glib, graphite2, icu4c@78, libpng
构建依赖gobject-introspection, meson, ninja, pkgconf, python@3.14
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameharfbuzz
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gir1.2-harfbuzz-0.0 10.2.0-1+deb13u1

OpenType text shaping engine (GObject introspection data)

https://harfbuzz.github.io/

sudo apt install gir1.2-harfbuzz-0.0
  • Section: introspection
  • Architecture: amd64
  • Source Package: harfbuzz
  • 4 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gir1.2-harfbuzz-0.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-bin 10.2.0-1+deb13u1

OpenType text shaping engine (utility)

https://harfbuzz.github.io/

sudo apt install libharfbuzz-bin
  • Section: utils
  • Architecture: amd64
  • Source Package: harfbuzz
  • 9 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-cairo0 10.2.0-1+deb13u1

OpenType text shaping engine Cairo backend

https://harfbuzz.github.io/

sudo apt install libharfbuzz-cairo0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 3 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-cairo0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-dev 10.2.0-1+deb13u1

Development files for OpenType text shaping engine

https://harfbuzz.github.io/

sudo apt install libharfbuzz-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: harfbuzz
  • 12 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-doc 10.2.0-1+deb13u1

Documentation files for the HarfBuzz library

https://harfbuzz.github.io/

sudo apt install libharfbuzz-doc
  • Section: doc
  • Architecture: all
  • Source Package: harfbuzz
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-gobject0 10.2.0-1+deb13u1

OpenType text shaping engine ICU backend (GObject library)

https://harfbuzz.github.io/

sudo apt install libharfbuzz-gobject0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 3 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-gobject0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-icu0 10.2.0-1+deb13u1

OpenType text shaping engine ICU backend

https://harfbuzz.github.io/

sudo apt install libharfbuzz-icu0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 3 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-icu0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz-subset0 10.2.0-1+deb13u1

OpenType text shaping engine (subset library)

https://harfbuzz.github.io/

sudo apt install libharfbuzz-subset0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 2 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz-subset0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libharfbuzz0b 10.2.0-1+deb13u1

OpenType text shaping engine (shared library)

https://harfbuzz.github.io/

sudo apt install libharfbuzz0b
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 4 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libharfbuzz0b from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

harfbuzz

nix profile install nixpkgs#harfbuzz
  • normalized package name match
  • 匹配方式:Harfbuzz
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ha/harfbuzz/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gir1.2-harfbuzz-0.0 8.3.0-2build2

OpenType text shaping engine (GObject introspection data)

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install gir1.2-harfbuzz-0.0
  • Section: introspection
  • Architecture: amd64
  • Source Package: harfbuzz
  • 4 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gir1.2-harfbuzz-0.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libharfbuzz-bin 8.3.0-2build2

OpenType text shaping engine (utility)

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install libharfbuzz-bin
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: harfbuzz
  • 9 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libharfbuzz-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libharfbuzz-cairo0 8.3.0-2build2

OpenType text shaping engine Cairo backend

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install libharfbuzz-cairo0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 3 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libharfbuzz-cairo0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libharfbuzz-dev 8.3.0-2build2

Development files for OpenType text shaping engine

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install libharfbuzz-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: harfbuzz
  • 12 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libharfbuzz-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libharfbuzz-doc 8.3.0-2build2

Documentation files for the HarfBuzz library

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install libharfbuzz-doc
  • Section: doc
  • Architecture: all
  • Source Package: harfbuzz
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libharfbuzz-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libharfbuzz-gobject0 8.3.0-2build2

OpenType text shaping engine ICU backend (GObject library)

https://www.freedesktop.org/wiki/Software/HarfBuzz

sudo apt install libharfbuzz-gobject0
  • Section: libs
  • Architecture: amd64
  • Source Package: harfbuzz
  • 3 依赖
  • normalized package name match
  • 匹配方式:Harfbuzz
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libharfbuzz-gobject0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment