
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@akashic/bmpfont-generator
Advanced tools
ttfファイルからビットマップフォントを作成するためのツールです。
このソフトウェアはcanvasモジュールに依存しています。canvasモジュールの動作のためにcairoをインストールしておく必要があります。cairoのインストール方法はcanvasモジュールのREADMEを参照してください。
$ npm install -g @akashic/bmpfont-generator
ビットマップフォントの描画に使用するTrueTypeフォント(ttf形式)のファイル名と、出力されるビットマップフォント(png形式)のファイル名を指定してください。
$ bmpfont-generator infile.ttf outfile.png
$ bmpfont-generator --help
| オプション | 短縮名 | 効果 | 必須 | デフォルト値 |
|---|---|---|---|---|
--height <size> | -H | 文字の縦サイズ(px) | 13 | |
--fixed-width <size> | -w | 文字の横サイズ(px) 。指定した場合、文字の幅に関わらずsizeを幅の値とする | ||
--chars <string> | -c | 書きだす文字の羅列 | 0-9,a-Z,各種記号 | |
--chars-file <filepath> | -f | 書き出す文字が羅列されたテキストファイルのパス | ||
--missing-glyph <char> | -m | -cの指定に含まれない文字の代わりに用いる代替文字 | フォントが持つ代替文字 | |
--missing-glyph-image <filepath> | -M | 代替文字として用いる画像ファイルのパス | ||
--fill <fillstyle> | -F | フィルスタイル | #000000 | |
--stroke <strokestyle> | -S | ストロークスタイル | #000000 | |
--quality <quality> | -Q | 1-100の画質。指定する場合、 pngquant が必要 | 圧縮しない | |
--baseline <baseline> | ベースライン | 自動で計算された値 | ||
--no-anti-alias | アンチエイリアス無効化 | |||
--json <filepath> | jsonファイルを書き出すパス | <outfileName>_glyphs.json | ||
--no-json | jsonファイルを出力しない | |||
--margin | 文字間の余白(px) | 1 |
本リポジトリは MIT License の元で公開されています。 詳しくは LICENSE をご覧ください。
ただし、画像ファイルおよび音声ファイルは CC BY 2.1 JP の元で公開されています。
4.0.5
FAQs
generate bitmap fonts from TrueType fonts
We found that @akashic/bmpfont-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.