# font-mount

> font mout for linux system

Latest version **1.0.1** (published 2016-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install font-mount
pnpm add font-mount
yarn add font-mount
bun add font-mount
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-08-26 |
| First published | 2016-06-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | eward.song@gmail.com |
| Maintainers | shepherdwind |
| Keywords | fonts |

## Links

- npm: https://www.npmjs.com/package/font-mount
- Repository: https://github.com/shepherdwind/fonts-mount
- Homepage: https://github.com/shepherdwind/fonts-mount#readme
- Issues: https://github.com/shepherdwind/fonts-mount/issues
- npm.io page: https://npm.io/package/font-mount

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) ^0.30.0

## Recent versions

- 1.0.1 (latest) — 2016-08-26
- 1.0.0 — 2016-06-18

## README

### font-mount

To install some font for linux system. For example, If you use phantomjs to capture
web contents, you may face the problem that Linux do not have any font default.

This package is to solve this problem.

### How to work

- https://wiki.debian.org/Fonts
- https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-x-fonts.html

From those wiki, we can install fonts just two step:

1. Copy font to user dir `~/.fonts/`
2. Run `fc-cache` to update font config

After those step, you can use what ever font you like.

For example https://github.com/adobe-fonts/source-han-sans , which open source
fonts, and support cjk fonts.

### How to use

```js
const fontMount = require('font-mount');
fontMount('/path/fonts/SourceHanSansHWSC-Regular.otf');

// or
fontMount({
  fontSource: '/path/fonts/SourceHanSansHWSC-Regular.otf',
  fontName: 'SourceHanSansHWSC-Regular.otf',
  fontDist: '~/.fonts/',
});
```

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