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

Allow adding fonts to pebble.js projects #239

Open
unwiredben opened this issue Nov 4, 2015 · 0 comments
Open

Allow adding fonts to pebble.js projects #239

unwiredben opened this issue Nov 4, 2015 · 0 comments

Comments

@unwiredben
Copy link

While the current pebble.js docs don't indicate that it has custom font support, looking at the source code indicates that if you set the text.font property to a number, it will use that as the resource ID for the font to load from the C runtime. Right now, CloudPebble doesn't support adding fonts to a pebble.js project, so this limitation should be removed and the pebble.js docs should be updated.

For code refs, see https://github.com/pebble/pebblejs/blob/master/src/simply/simply_stage.c#L73 and https://github.com/pebble/pebblejs/blob/master/src/simply/simply_stage.c#L568 for the runtime side and https://github.com/pebble/pebblejs/blob/master/src/js/ui/simply-pebble.js#L1199 for the JS encoding side.

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

No branches or pull requests

1 participant