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
您需要: