https://fontstruct.github.io/fonthx/
このレポンをマシンのフォルダーにgitでクローンします
git clone [email protected]:FontStruct/fonthx.git
https://haxe.org/download/からhaxeをインストールする
現在、Haxe 4.2をサポートしています(Haxe 3.4でタグ0.04を使用している場合)
HAXE依存関係をインストールします
LIX(優先):
lix download
Haxelib(Haxelibでインストールする人は誰でもこの問題を最初に確認する必要があります)
haxelib install haxelib.json
建てる:
haxe build/examples/pixelfonter/pixelfonter-node.hxml
これにより、PIXELFONTERの例が作成され、PNG画像からTrueTypeフォントが作成されます。
今実行:
node dist/examples/pixelfonter/node/PixelFonterApp.js -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
建てる:
haxe build/examples/pixelfonter/pixelfonter-java.hxml
走る:
java -jar dist/examples/pixelfonter/java/PixelFonterApp.jar -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
または、CFFの概要を備えたフォントの場合:
java -jar dist/examples/pixelfonter/java/PixelFonterApp.jar -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.otf -f otf
建てる:
haxe build/examples/pixelfonter/pixelfonter-cpp.hxml
走る:
dist/examples/pixelfonter/cpp/PixelFonterApp -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
OSXまたはLinuxでこの例を構築および実行するには、brew Install Mono経由でモノをインストールする必要があります。
建てる:
haxe build/examples/pixelfonter/pixelfonter-cs.hxml
走る:
mono dist/examples/pixelfonter/cs/bin/PixelFonterApp.exe -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
haxe build/examples/pixelfonter/pixelfonter-js.hxml
- この例を表示するには、dist/examples/pixelfonter/js/index.htmlでWebサーバーをポイントする必要があります
これは複雑で不安定です - 冒険。
HXCWD=`pwd` haxe build/examples/pixelfonter/pixelfonter-wasm.hxml
- これをコンパイルするには、emscriptenをセットアップする必要があります。また、dist/examples/pixelfonter/wasm/index.htmlでWebサーバーをポイントする必要があります。最も簡単な方法は、Emrun Egの場合です
emrun --no_emrun_detect --browser chrome dist/examples/pixelfonter/wasm/PixelFonterBrowserApp-debug.html
(初期化にはしばらく時間がかかるかもしれません)
開発ツール(GULP)をセットアップします。
npm install gulp-cli -g
npm install
仕様を実行:
gulp specs
または、仕様を開発して実行します。
gulp specs-watch
Pixelfonterの例Exampアプリ(ノードターゲット)を使用して開発します。
gulp pixelfonter-watch
利用可能なすべてのガルプタスクを表示します。
gulp --tasks
ガイダンスのためのPixelfOnterの例、特にPixelfonterを見てください
必要がある: