npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@akashic/bmpfont-generator

v4.0.5

Published

generate bitmap fonts from TrueType fonts

Downloads

24

Readme

bmpfont-generator

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 の元で公開されています。