fonthx
1.0.0
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安裝單聲道
建造:
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
- 為了查看此示例,您需要將Web服務器指向DIST/示例/pixelfonter/js/index.html
這很複雜且不穩定 - 冒險。
HXCWD=`pwd` haxe build/examples/pixelfonter/pixelfonter-wasm.hxml
- 您將需要設置Emscripten,以編譯該內容。您還需要將Web服務器指向DIST/示例/pixelfonter/wasm/index.html。最簡單的方法是Emrun
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示例應用程序(節點目標)開發:
gulp pixelfonter-watch
顯示所有可用的灣任務:
gulp --tasks
查看Pixelfonter的示例,特別是Pixelfonter
您需要: