Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-Friendly API / etc #88

Open
mattdesl opened this issue May 6, 2015 · 5 comments
Open

User-Friendly API / etc #88

mattdesl opened this issue May 6, 2015 · 5 comments

Comments

@mattdesl
Copy link
Contributor

mattdesl commented May 6, 2015

Ok, first off, this is bloody awesome. 👍

I'm poking around with the tool and finding the API doc is a bit dated and doesn't match what's currently on npm. Also I'm wondering if there are any details on the spec for how glyphs are stored, or whether you have plans to release smaller modules to help parse the data into something more user-friendly?

@mattdesl
Copy link
Contributor Author

mattdesl commented May 6, 2015

Alright, I think this is what I need. 😎

https://github.com/mapbox/node-fontnik/blob/master/proto/glyphs.proto

@kkaefer
Copy link
Contributor

kkaefer commented May 6, 2015

https://github.com/mapbox/fontnik also has a JS only implementation of this, but it's a lot less tested and unused.

@lbud
Copy link
Contributor

lbud commented May 6, 2015

@mattdesl thanks for flagging re API docs — I made a few last-minute changes to the API for the last release and failed to update those, but just pushed an update in b058c5d.

Not sure what your use case is/if this helps at all, but https://github.com/mapbox/fontmachine is the connection between this and the actual PBFs used in Mapbox GL.

@mattdesl
Copy link
Contributor Author

mattdesl commented May 6, 2015

Thanks.

My use case right now is mostly for gamedev and prototyping so the offline/freetype approach works well.

I checked out fontmachine; I may build some higher level modules on top of fontnik for extracting bitmaps, packing them into an atlas, etc. Cheers. 👍

@mikemorris
Copy link
Contributor

@mattdesl Our current implementations of extracting glyphs, atlas packing, line breaking and rendering are in https://github.com/mapbox/mapbox-gl-js, would be neat to break them out into individual modules if you're looking for somewhere to start!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants