https://fontstruct.github.io/fonthx/
이 저장소로 git로 복제하여 컴퓨터의 폴더로 복제하십시오.
git clone [email protected]:FontStruct/fonthx.git
https://haxe.org/download/에서 Haxe, EG 설치
현재 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 이미지에서 트루 타입 글꼴이 생성됩니다.
이제 실행 :
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 에서이 예제를 구축하고 실행하려면 Mono, 예를 들어 BREW 설치 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로 가리켜 야합니다.
이것은 복잡하고 불안정합니다 - 모험.
HXCWD=`pwd` haxe build/examples/pixelfonter/pixelfonter-wasm.hxml
- 이것을 컴파일하려면 emscripten을 설정해야합니다. 또한 웹 서버를 dist/examples/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 작업을 표시하십시오.
gulp --tasks
안내에 대한 Pixelfonter 예제, 특히 Pixelfonter를보십시오.
당신은 필요합니다 :