https://fontstruct.github.io/fonthx/
Clonar este repositorio con GIT a una carpeta en su máquina
git clone [email protected]:FontStruct/fonthx.git
Instale HAXE, por ejemplo, desde https://haxe.org/download/
Actualmente admite HAXE 4.2 (si está en HAXE 3.4 Use la etiqueta 0.04)
Instalar dependencias de HAXE
Con LIX (preferido):
lix download
Con Haxelib (cualquier persona que se instale con Haxelib debe verificar este problema primero)
haxelib install haxelib.json
Construir:
haxe build/examples/pixelfonter/pixelfonter-node.hxml
Esto construirá el ejemplo de Pixelfonter, que creará una fuente TrueType a partir de una imagen PNG.
Ahora corre:
node dist/examples/pixelfonter/node/PixelFonterApp.js -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
Construir:
haxe build/examples/pixelfonter/pixelfonter-java.hxml
Correr:
java -jar dist/examples/pixelfonter/java/PixelFonterApp.jar -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
O, para una fuente con contornos de 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
Construir:
haxe build/examples/pixelfonter/pixelfonter-cpp.hxml
Correr:
dist/examples/pixelfonter/cpp/PixelFonterApp -i build/examples/pixelfonter/pixel-font-5x5.png -c65-91 -o tmp/pixelfont.ttf
Para construir y ejecutar este ejemplo en OSX o Linux, deberá instalar Mono, por ejemplo, a través de Brew Install Mono
Construir:
haxe build/examples/pixelfonter/pixelfonter-cs.hxml
Correr:
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
- Para ver este ejemplo, deberá señalar un servidor web a dist/ejemplos/pixelfonter/js/index.html
Esto es complicado e inestable, una aventura.
HXCWD=`pwd` haxe build/examples/pixelfonter/pixelfonter-wasm.hxml
- Deberá configurar Emscripten para compilar este. También deberá señalar un servidor web en dist/ejemplos/pixelfonter/wasm/index.html. La forma más fácil es con Emrun, por ejemplo,
emrun --no_emrun_detect --browser chrome dist/examples/pixelfonter/wasm/PixelFonterBrowserApp-debug.html
(Bien puede tardar un tiempo en inicializarse)
Configurar las herramientas de desarrollo (GULP):
npm install gulp-cli -g
npm install
Ejecutar especificaciones:
gulp specs
O, desarrollar y ejecutar especificaciones:
gulp specs-watch
Desarrollar usando la aplicación de ejemplo de Pixelfonter (objetivo de nodo):
gulp pixelfonter-watch
Muestre todas las tareas de Gulp disponibles:
gulp --tasks
Mire el ejemplo de Pixelfonter para obtener orientación, en particular Pixelfonter
Necesitas: