# 使用 Homebrew, MacPorts 安装 msdfgen

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

## 安装

```sh
sudo av install brew:msdfgen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install msdfgen
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install msdfgen
```

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

## 软件包事实

- **软件包键:** brew:msdfgen
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/msdfgen>
- **版本:** 1.13
- **来源摘要:** Multi-channel signed distance field generator
- **主页:** <https://github.com/Chlumsky/msdfgen>
- **仓库:** <https://github.com/Chlumsky/msdfgen>
- **上游文档:** <https://github.com/Chlumsky/msdfgen#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/Chlumsky/msdfgen/archive/refs/tags/v1.13.tar.gz>
- **最后更新:** 2026-07-02T15:53:33+02:00
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- msdfgen (cli)
- msdfgen (别名)

## 依赖

- freetype
- libpng
- tinyxml2

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.13
- 管理器更新时间: 2026-07-02
- 本地数据: OK
- 上游仓库: https://github.com/Chlumsky/msdfgen
- 检测到的最新版本: v1.13 (当前)
## 项目历史与用法

msdfgen is a utility and library for generating signed distance fields from vector shapes and font glyphs, with its main focus on multi-channel signed distance fields for real-time graphics.

### 项目历史

The official GitHub repository was created in 2016 and the changelog lists version 1.0 as the initial public release on 2016-04-28. The project later added CMake support, expanded SVG and font handling, introduced MTSDF mode, and kept refining error correction, geometry preprocessing, and build options.

### 采用历史

The README positions msdfgen both as a standalone console program and as a C++ library. It also points users toward msdf-atlas-gen when generating complete font atlases, which reflects its adoption in graphics and text-rendering pipelines rather than as an end-user media tool.

### 使用方式

Typical package-manager usage is running msdfgen with a mode, input, and options to generate SDF, PSDF, MSDF, or MTSDF textures from fonts, SVG files, shape descriptions, or standard input. The library API exposes the same core generation routines for embedding in renderers and tools.

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

msdfgen matters in packaging because it bridges graphics research and practical asset generation: a small CLI plus C++ library, optional image/font/SVG dependencies, and current releases that track real-world build-system needs.

### 时间线

- 2016: Repository created and version 1.0 published.
- 2017: CMake build script added.
- 2020: MTSDF mode added.
- 2023: Standalone executable can be built in a limited dependency-free form.
- 2025: Version 1.13 released.

### Related projects

- msdf-atlas-gen is the official companion project recommended by the README for generating full font atlases.

### 来源

- <https://github.com/Chlumsky/msdfgen>
- <https://github.com/Chlumsky/msdfgen#readme>
- <https://raw.githubusercontent.com/Chlumsky/msdfgen/master/CHANGELOG.md>
- source_facts.description
- source_facts.repo


## 安全说明

没有找到 msdfgen 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** msdfgen
- **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

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

- MacPorts - msdfgen: normalized package name match | MacPorts ports tree: graphics/msdfgen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [freetype](https://www.automicvault.com/zh-hans/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/zh-hans/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [msdf-atlas-gen](https://www.automicvault.com/zh-hans/pkg/brew/msdf-atlas-gen/) - Popular package that depends on this formula.
- [shaderc](https://www.automicvault.com/zh-hans/pkg/brew/shaderc/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [t1lib](https://www.automicvault.com/zh-hans/pkg/brew/t1lib/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [pixlet](https://www.automicvault.com/zh-hans/pkg/brew/pixlet/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [glbinding@2](https://www.automicvault.com/zh-hans/pkg/brew/glbinding-2/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [glslviewer](https://www.automicvault.com/zh-hans/pkg/brew/glslviewer/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [molten-vk](https://www.automicvault.com/zh-hans/pkg/brew/molten-vk/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [notcurses](https://www.automicvault.com/zh-hans/pkg/brew/notcurses/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [seexpr](https://www.automicvault.com/zh-hans/pkg/brew/seexpr/) - Shares av.db curated category or tags: cli, developer-tools, graphics.
- [harfbuzz](https://www.automicvault.com/zh-hans/pkg/brew/harfbuzz/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, freetype, libpng.

## Combined YAML source

View the package source record on GitHub. [combined/msdfgen.yml](https://github.com/automic-vault/db/blob/main/combined/msdfgen.yml)


## 来源

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