# 使用 Homebrew, dnf, MacPorts, Nix 安装 ttf2pt1

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

## 安装

```sh
sudo av install brew:ttf2pt1
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ttf2pt1
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ttf2pt1
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install ttf2pt1
```

  证据: Fedora Rawhide package metadata: ttf2pt1 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#ttf2pt1
```

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

## 软件包事实

- **软件包键:** brew:ttf2pt1
- **软件包管理器:** Homebrew
- **版本:** 3.4.4
- **来源摘要:** True Type Font to Postscript Type 1 converter
- **主页:** <https://ttf2pt1.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ttf2pt1 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ttf2pt1 is a classic Unix font-conversion utility for converting TrueType and other scalable font formats into PostScript Type 1 fonts and metrics.

### 项目历史

The official homepage frames ttf2pt1 as a practical answer to a late-1990s Unix desktop problem: users could often find fonts in TrueType format, while X11 and PostScript workflows commonly wanted Adobe Type 1 fonts.

The README states that ttf2pt1 is based on Andrew Weeks' `ttf2pfa`, with help from Frank Siegert, modification by Mark Heath, further modification by Sergey Babkin, and Type 1 assembler work by I. Lee Hetherington with Kai-Uwe Herbing modifications.

The project grew beyond simple outline conversion. The README says versions 3.0 and later added extensive post-processing to meet Type 1 requirements, correct rounding errors and common public-domain TTF bugs, and generate hints for better small-size display rendering.

### 采用历史

ttf2pt1's adoption belongs to the era when Linux, X11, TeX, and PostScript users needed command-line font conversion without commercial Mac or Windows tools. The homepage explicitly mentions searching the web and comp.fonts and finding mostly commercial software.

SourceForge file history shows active releases and binary packages in the early 2000s, including platform binaries and the 3.4.4 source release at the end of 2003. The supplied package facts show that Homebrew, Fedora, MacPorts, and Nix still package it.

The tool persisted in package managers because old font workflows persist: TeX, X11, PostScript printers, and archival font conversion all benefit from a scriptable converter that can output `.pfa`, `.pfb`, and `.afm` files.

### 使用方式

The documented command form is `ttf2pt1 [-options] ttffont.ttf [Fontname]` or output to standard output with `ttf2pt1 [-options] ttffont.ttf -`.

By default it creates a Type 1 font file and AFM metrics; options control binary `.pfb` output, glyph inclusion, language/encoding extraction, parser choice, hinting behavior, outline processing, and output file selection.

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

ttf2pt1 is a high-signal package-nerd artifact: a small C utility with deep format knowledge, born from Unix font pain, and still packaged because build scripts and archival workflows occasionally need exactly this conversion.

It also illustrates why package managers keep old developer tools alive. The mainstream web and desktop font world moved on, but reproducible conversion of historical fonts and PostScript-era assets remains useful.

### 时间线

- Pre-ttf2pt1: Andrew Weeks' `ttf2pfa` provides the Type 3 conversion base.
- 2001: SourceForge file history shows early old files and `ttf2pt1-chinese` distribution.
- 2002: SourceForge RSS lists 3.4.x releases and platform binary packages.
- 2003: Version 3.4.4 source archives are released on SourceForge.
- Present: Homebrew, Fedora, MacPorts, and Nix package the utility according to supplied package facts.

### Related projects

- The official pages identify `ttf2pfa`, FreeType, t1utils, and X11 font handling as closely related technologies.
- Nearby package-manager tools include other font converters, font editors, and PostScript utilities.

### 来源

- <https://sourceforge.net/projects/ttf2pt1/files/ and https://sourceforge.net/projects/ttf2pt1/rss?path=/ document release dates and source/binary packages.>
- <https://ttf2pt1.sourceforge.net/ documents the background, motivation, authorship, credits, and role of ttf2pt1.>
- <https://ttf2pt1.sourceforge.net/README.html documents command syntax, conversion outputs, Type 1 post-processing, hinting, and options.>
- source_facts.package-manager lists Homebrew, Fedora, MacPorts, and Nix packages.


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - ttf2pt1: normalized package name match | nixpkgs package indexes: pkgs/by-name/tt/ttf2pt1/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - ttf2pt1 - 3.4.4-53.fc45: normalized package name match | Fedora Rawhide package metadata: ttf2pt1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TrueType to Adobe Type 1 font converter | http://ttf2pt1.sourceforge.net
- MacPorts - ttf2pt1: normalized package name match | MacPorts ports tree: print/ttf2pt1/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ttf2pt1.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ttf2pt1.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
