jrmobley / pebble-fctx-compiler Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
The library is great! Though I'm now trying to run through the demo code with my own font, using bebas neue. I took the TTF, ran it through FontForge to create an SVG. I ran into the glyph missing unicode bug and deleted any ones that did not have unicode. I ran the compiler and finally got a .ffont file out of it, but it ended up being 441454 bytes. Obviously this is much too large for Pebble's resource limit, haha. What am I doing wrong? What should I do? I'm pretty lost, to be honest ๐ถ
Here is a pastebin of the log of compiling: http://pastebin.com/snrmmnw7
Thanks!
Not sure if I am doing something wrong or the fact that I am running Node on Windows has something to do with it, but when I am trying to compile a font, getting this:
events.js:141
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'charCodeAt' of undefined
at C:\Temp\fctx-compiler.js:111:31
at Array.reduce (native)
at packFont (C:\Temp\fctx-compiler.js:108:34)
at C:\Temp\fctx-compiler.js:56:30
at Function._.each._.forEach (C:\Temp\node_modules\underscore\underscore.js:153:9)
at C:\Temp\fctx-compiler.js:54:11
at Parser.<anonymous> (C:\Temp\node_modules\xml2js\lib\xml2js.js:483:18)
at emitOne (events.js:77:13)
at Parser.emit (events.js:169:7)
at Object.onclosetag (C:\Temp\node_modules\xml2js\lib\xml2js.js:444:26)
Font originally was a TTF, converted it to SVG via FontForge. Any help is appreciated. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.