# system-font-paths

> Finds the paths of all locally installed system fonts

Latest version **1.2.1** (published 2025-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install system-font-paths
pnpm add system-font-paths
yarn add system-font-paths
bun add system-font-paths
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2025-04-28 |
| First published | 2023-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 2 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | Lucian Cooper |
| Maintainers | lcooper |
| Keywords | fonts, font, otf, ttf, ttc, opentype |

## Links

- npm: https://www.npmjs.com/package/system-font-paths
- Repository: https://github.com/luciancooper/system-font-paths
- Homepage: https://github.com/luciancooper/system-font-paths#readme
- Issues: https://github.com/luciancooper/system-font-paths/issues
- npm.io page: https://npm.io/package/system-font-paths

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.3.1
- [@mapbox/node-pre-gyp](https://npm.io/package/@mapbox/node-pre-gyp.md) ^2.0.0

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2025-04-28
- 1.2.0 — 2024-05-09
- 1.1.0 — 2023-03-16
- 1.0.0 — 2023-03-13

## README

# system-font-paths

[![npm](https://img.shields.io/npm/v/system-font-paths?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/system-font-paths)
[![ci](https://img.shields.io/github/actions/workflow/status/luciancooper/system-font-paths/ci.yml?logo=github&style=for-the-badge)](https://github.com/luciancooper/system-font-paths/actions/workflows/ci.yml)
[![license](https://img.shields.io/github/license/luciancooper/system-font-paths?color=yellow&style=for-the-badge)](#license)

A C++ module for Node.js that lists all locally installed system font files.

## About

This package exports a single async function that returns an array containing the file paths of all locally installed fonts. It is a slimmed down version of [`fontmanager-redux`](https://github.com/Eugeny/fontmanager-redux).

**Platforms**

* Mac OS X 10.5 and later supported via [CoreText](https://developer.apple.com/documentation/coretext)
* Windows 7 and later supported via [DirectWrite](https://learn.microsoft.com/en-us/windows/win32/directwrite/direct-write-portal)
* Linux supported via [fontconfig](http://www.freedesktop.org/software/fontconfig)

## Installation

Install with `npm`:

```bash
npm install system-font-paths
```

Or with `yarn`:

```bash
yarn add system-font-paths
```

Prebuilt binaries for node 16, 18, 20, and 22 are provided via [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) for the following platforms:

- macOS x64 and arm64
- Windows x64 and x86
- Linux x64 (Ubuntu)

## API

This package exports a single asynchronous function that promises an array of font file path strings:

```js
import systemFontPaths from 'system-font-paths';

systemFontPaths().then((fontPaths) => { ... });
```

## Acknowledgements

This project is based heavily on the `fontmanager-redux` and `font-manager` packages:

 * [`fontmanager-redux`](https://github.com/Eugeny/fontmanager-redux)
 * [`font-manager`](https://github.com/foliojs/font-manager)

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/system-font-paths · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
